I am trying to create a 4 direction animation for turret, with turret behavior. I know I should check the angle and decide which animation it should run based on it. The problem is that because I am setting rotation of the turret to "Yes" the turret rotate in weird way and switch frame after rotation. I guess I should set rotation to "NO" but this way it will not change its angle.
The turret should fire in all angles, how is that possible.
Screenshots of the code and the rotation are found in this link.
Any help will be really appreciated.
Develop games in your browser. Powerful, performant & highly capable.
You need a separate sprite (or really a separate frame within one sprite) for every orientation you want it in.