How do I create 4 direction animation for turret

Get help using Construct 2

Post » Fri Jan 22, 2016 8:13 am

Hello,

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.
"https://drive.google.com/open?id=0B1pGW-xaP8VfM1hNZTFEeTgzd0U"

Any help will be really appreciated.
B
7
Posts: 21
Reputation: 325

Post » Fri Jan 22, 2016 6:19 pm

You need a separate sprite (or really a separate frame within one sprite) for every orientation you want it in.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,396
Reputation: 4,786


Return to How do I....?

Who is online

Users browsing this forum: COGames, loz666, Mogador, Sumyjkl and 1 guest