How do I rotate a cannon as the pad stick is oriented ?

Get help using Construct 2

Post » Wed Oct 05, 2016 7:45 am

hi guys, how could I do that. I have a cannon that can rotate 360°. I would rotate it to the position as the game pad stick is. If It is on 35° also the cannon should be 35°...

thanks :)
B
37
S
16
G
2
Posts: 451
Reputation: 4,873

Post » Wed Oct 05, 2016 9:10 am

Check this answer
It is for the right stick, but then having the same for the left stick is changing the index of the axis you are checking for in the formula.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
295
S
118
G
96
Posts: 7,327
Reputation: 71,246

Post » Wed Oct 05, 2016 1:43 pm

thanks a lot :)
B
37
S
16
G
2
Posts: 451
Reputation: 4,873


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 4 guests