Hi,
I’m working on a game (with Flash 8) that is top-down view, you control a guy with the mouse and your arrow keys, mouse to aim and the keys to move of course.
I need some help with writing the enemy AI though, because I just can’t make them face the player.
Since this is a shooter game, the monsters and the player use guns, and so i need the enemies to aim at the player. However the way(s) I’ve tried to do it just didn’t work.
I’ve tried using hit.test for the enemy itself, tried putting a movieclip into the enemy which is long and checks for hit.test with the player, but that didn’t work either.
Any ideas how could i make the enemies face the player? Mind you, the player controls its own rotation so putting opposite rotation of player won’t work.
Later on i’m sure i’m going to need more help with other stuff too. :\