Making an object move and while moving attach to an object

Hello I am trying to make a eagle fly downward, pick up a snake, and fly up. I have made the object follow 2 lines to go up and down but I don’t know how to make them collide correctly to attach. Can somebody explain to me what to do? The picture is what my code looks like now.coblocks|571x500

Hi @Eli_Jurica,

Your event code gets run at line 4, AFTER your blackbird has done it’s movements in lines 2 & 3; so you’re telling CoSpaces to move the blackbird down, then up, and THEN watch out for a collision with the snake.

Does that make sense? Can you see the solution?

Hope that helps! Let me know if you have any further questions about this. If this helps you to solve your problem, please mark this post as the Solution.

Many thanks,
Geoff @ TechLeap

When the objects hit each other does cospaces defined that as collide or do i need to change some settings first?

A collision is when two items hit each other - no other setup is required.

You want CoSpaces to do this:

  1. Eagle fly downward
  2. Pick up snake
  3. Eagle fly up

But what you’re telling it to do is this:

  1. Eagle fly downward
  2. Eagle fly upward
  3. Pick snake up on collision

Can you see the problem with this?

1 Like

yes thank you i will try it now

1 Like