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: 447
Reputation: 4,865

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
292
S
115
G
96
Posts: 7,295
Reputation: 70,785

Post » Wed Oct 05, 2016 1:43 pm

thanks a lot :)
B
37
S
16
G
2
Posts: 447
Reputation: 4,865


Return to How do I....?

Who is online

Users browsing this forum: Armench, Artcadev, farsen and 15 guests