I would suggest you add some room to the Y at which enemy can still see the player, though... Like this:
abs(Player.Y - Enemy.Y) < 20
So when the player gets within 20 pixels of Enemy's Y position, it gets frisky. You can adjust that for height of enemy sprites too, if you want, such as:
abs(Player.Y - Enemy.Y) < Enemy.Height
Depends where you have hotspots, you can adjust at will.
Mipey Yeah :c as you can see Game
Its not working well because of how the Y is set up..
It works. The enemy will jump when he spots you, though.
Now I'm off to sleep, hopefully you'll be able to figure it out! Good luck!
Mipey We need more people like you on this forum, thanks a ton!
Develop games in your browser. Powerful, performant & highly capable.
Mipey that was great what you did. You want to do something more to this example?