Hello! Imagine a game like Asteroids (http://www.oldsoftware.com/softimg7/atari2.jpg), where your spaceship moves in circle/rotation. I just did the sprite rotation and the controls. It's ok. What I need to do to calculate that the spaceship is "looking" to an enemy? In other words, how to know the enemy is "on target"?
To move the ship, I'm using something like this:
Key Down >> Right:
ang-=1;
if(ang<0){ang=180;}
animpos=ang;
But I need a way to know the ship is pointing to an enemy.