Trouble with analog sticks on xbox360 pad

Get help using Construct 2

Post » Fri Feb 01, 2013 9:59 pm

In the middle currently of a 48 hour Game-jam and this hiccup with the controller is really slowing things down, so need a response as soon as :)

Xbox pad working fine for everything except when I am attempting to set the RIGHT analog stick to control the angle of the characters arm.
Move right analog stick right and theorectically the characters arm/gun is set right.

I looked through the forums and only found this, and it is quite advanced to the extent that I don't fully understand it.

"angle(0, 0, Gamepad.Axis(0, 0), Gamepad.Axis(0, 1))"

With this used to "set angle" the LEFT stick directs the angle of the arm instead of the RIGHT.
This is a problem because the characters left and right movement is set on the LEFT stick.

Thanks ahead guys :)
B
15
S
5
G
2
Posts: 154
Reputation: 3,076

Post » Fri Feb 01, 2013 10:13 pm



but gamepad.axis(which game pad, which axis) - its in the plugin docs..
probably not very useful

where is the angle function?matt752013-02-01 22:21:39
B
6
G
2
Posts: 37
Reputation: 1,499

Post » Fri Feb 01, 2013 10:16 pm

Messes with angles on left stick. RIGHT stick still nothing :/
B
15
S
5
G
2
Posts: 154
Reputation: 3,076

Post » Fri Feb 01, 2013 10:39 pm

Right stick angle is angle(0, 0, Gamepad.Axis(0, 2), Gamepad.Axis(0, 3))

matt75 is right. it shouldbe in the plugin docjayderyu2013-02-01 22:40:29
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834

Post » Fri Feb 01, 2013 10:43 pm

Thankyou both of you :) Works a treat, can finally get on with the jam!
B
15
S
5
G
2
Posts: 154
Reputation: 3,076


Return to How do I....?

Who is online

Users browsing this forum: SpartCrafter, Yahoo [Bot] and 20 guests