I have zombies that wander a 2d platformer. What I am trying to do is cause the zombies to change their animation to a jump/reach animation when they are under the hero.
I have it set up so the zombies are always moving toward the player, but after they reach a certain point if the Y coordinates are in the right range I want them to start jumping/reaching. Does this make sense?
Basically, I don't know how to write out the coordinates so that they are within a range. Like, Player.X"Within two X coordinates relative to the player"