Stick an object to a certain y level

Hi guys,
I’m pretty new here and i’m trying too make a platforming game where you have to jump platform to platform to get away from the enemy on the ground who is chasing you.
I’ve tried to use the:
“move ‘enemy’ to player.X(), enemy.Y() with a force of 10”
but the enemy hits a wall and starts climbing it and then he gains this weird vertical momentum even if he leaves the wall so he kinda just flies away.
Any ideas how i could make the enemy stay on the ground?

Can I see the events?

Use the condition
Enemy is in collusion with wall and invert it (right click on event select invert)
Use it as condition to move your enemy.

Thanks for the reply but i figured it out i just had to copy the platformer example’s method.
Thanks anyway

1 Like