In a game that I'm creating; I'm trying to have an arrow point towards a spawned enemy. How do I do this?
Atm the enemies are not moving. Just setting the arrow angle towards (enemy.X, enemy.Y) just seems to point towards a random one, but I want it to point to the nearest.
I've tried looking around the forums, but all I could find is this post from 2011: [https://www.scirra.com/forum/nearest-instance_t63017]
Develop games in your browser. Powerful, performant & highly capable.
enemy pick closest to arrow.x, arrow.y, arrow set angle to enemy