How do i make the enemy shoot at player position in every angle, and use a animation, for example
Angle 1
Angle 2
Angle 3
Angle 4
I'm new in this engine, and i dont know how to do some things, is there any solution to this?
On some condition > Tank>Spawn Bullet
____________________________>Bullet> angle(self.X, Self.Y,Target.ImagePointX(0),Target.ImagePointY(0))
The Target being the guy with the gun and the Bullet having the bullet behavior.
Develop games in your browser. Powerful, performant & highly capable.
On some condition > Tank>Spawn Bullet ____________________________>Bullet> angle(self.X, Self.Y,Target.ImagePointX(0),Target.ImagePointY(0)) The Target being the guy with the gun and the Bullet having the bullet behavior.
But how i make the tank rotate to the player using different sprites/animations
You can define the animation of the turret ( or barrel and turret ; depends on your animations and yours sprite ) depending on the angle that there is between the tank and the target.