I use LOS and then use it to set Angle towards Player.X and PLayer.Y
Then i have it move forward 1 pixel when the player is in LOS
Is there something else i should use?
Develop games in your browser. Powerful, performant & highly capable.
No, Im using line of sight
Im trying to program a sprite that chases my player. The enemy starts at the left of my npc, but the second it goes to the right, it flips upisde down. I know i need to mirror it somehow, I just dont know. Could I get some help on figuring out why it does this, and how to fix it? Thank you so much in advance
Member since 17 Jul, 2023