How to make an object move along three or more points

I’m trying to make the “Evil” object move on three points and play some animation. I managed to send it to the first point, but after that it does not want to go to the second point.

I want to make a game like “How to get the neighbor”. When the neighbor moves along a certain route, interacts with certain objects and goes further.

Hi,
you are checking the distance between evil and m2. If it is below 10 px, you remove all the forces. Once this condition is met, there is nothing that enables your evil-sprite to move again (it will stay below 10 px and the force is removed).

A possibility to get around this is a boolean variable whose state can be used as an additional condition in the ‘distance between two objects’-event. If evil is within 10 px to m2 and the variable is, for instance, true, you can toggle it back to false and evil can move again.

1 Like