How do I have an enemy chasing you, so that he comes towards you when you're not moving, but he moves backwards slowly when you move forward?
Offline
have a variable titled moving.
on your character:
[if <<key[up]pressed>or<key [down] pressed>>]
[set moving to yes]
[else]
[set moving to no]
on the enemy:
[if <(moving)=yes>]
[point towards (character)]
[move -1 steps]
[if <(moving)=no>]
[point towards (character)]
[move 1 steps]
you can also add left and right arrows if they are used and change the number of steps to go fast/slow.
Offline