How do I setup a gamepad to turn left and right?

Get help using Construct 2

Post » Sat Feb 07, 2015 5:21 am

Hi,
I am having severe difficulty trying to figure out how to get the right X axis analog stick to simply turn left and right (not strafe)

what I am aiming for is left stick to go up down strafe left right and right stick to just turn left and right, I thought the car behavior would do it but I was mistaken lol, Thanks for any help :D
B
10
S
5
G
2
Posts: 37
Reputation: 1,992

Post » Sat Feb 07, 2015 6:57 am

I've put together an example.

Hopefully it's what you were asking for.

https://www.dropbox.com/s/m32jibxq70r5qhg/AnalogStrafeAndRotate.capx?dl=0

It basically uses the 8 direction behaviour and says if the left stick is up, down, left or right, simulate left, right, up or down. And if the right stick is left or right, rotate clockwise or counter clockwise.

I've just used an arbitrary number of 25 to determine if the analog stick is pushed to one side. This can totally be adjusted to suit the feel you'd like.

It's also possible to base the speed of the object on how hard you push the stick. But I haven't done that in this example. Let me know if you'd like me to.
B
10
S
4
G
5
Posts: 139
Reputation: 2,983

Post » Sat Feb 07, 2015 8:33 am

That's Perfect squeemish! thank you for all your effort :D
B
10
S
5
G
2
Posts: 37
Reputation: 1,992


Return to How do I....?

Who is online

Users browsing this forum: kseiro, Silviu and 9 guests