I'm currently designing a small 2D space shooter game. Much like Star Control 2, you move your space ship around in that fashion, fighting 1v1 with another spaceship..
I'm having trouble figuring out how to make the enemy ship know whether or not to turn left or turn right.. If I was in the upper right area of the screen and they were in the lower left area of the screen, and they were facing up, they'd want to turn a little to the right so they could face me and shoot at me..
I was searching for "facing" commands... something like, turn right until your facing him, etc.. But I cant find any. And I dont know how to program the AI to know which direction to turn...
Does anyone have a small example of how something like that works?
& Thanks everyone for all your help in the past! I hope that I'll return the favor some day..
EDIT : I messed up on the explanation