Im making a top down rpg, and im trying to change the enemy sprites animation based on where the player is around the enemy. I can't think of any way i could do this please help.
Develop games in your browser. Powerful, performant & highly capable.
Hey there, you can use angle() expression to calculate the angle between the player and the enemy in the Is Between Value system condition, and set the animation depending of the value
(example : angle(player.X, player.Y, enemy.X, enemy.Y) is between 0 and 15, set animation 1)
Don't forget to use For Each loop for enemies as the top condition so each instance can be picked individually
Im sorry i dont really understand this could you plaese clarify
Do you actually want to change the animation or just change the angle of the sprite toward the player?