How do I make an enemy rotate to my player and shoot it?
FungoEntertainment
Member Posts: 36
Basically, that's the question. The enemy is a cannon that doesn't move. Please help-
Comments
Attribute: game.angleToPlayer
Player code: constrain game.angleToPlayer to VectorToAngle(self.positionX,self.positionY)
Cannon code: rotate to angle game.angleToPlayer
Timer, after 4 seconds spawn actor "Bullet" infront of actor
I hope this works!