Original Post
Does anyone know a good way of having an object (like a turret) track another and adjust its frames accordingly. Like right now I have it working but its a really long and annoying way. Its just:
if(PlayerX > (EnemyX - 50) && PlayerX < (EnemyX + 50))
Enemy = SetFrame(4);
And so on and it gets really long when you do it for 16 frames. Is there a better way of doing this?
Thanx,
ViPeR