Gamepad Trials

Get help using Construct 2

Post » Thu Jul 25, 2013 3:35 pm

Hi guys!

I want to include an expression which will allow me to adjust the width of a sprite based on the amount the L trigger is pulled on a gamepad. The width must be between 123 and 200.

I currently have this formula:

clamp(max(Gamepad.RawButton(0, 6)*(100+100),123),123,200)

This works, but I noticed that I have to push the trigger down about half way before it starts responding, however, by the time the trigger is all the way down, the width is 200.

If someone can have a quick look and tell me what I'm missing, I'd appreciate it!

Trigger
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
79
S
12
G
6
Posts: 961
Reputation: 10,217

Post » Fri Jul 26, 2013 2:10 am

So I'm not the only one stumped?
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
79
S
12
G
6
Posts: 961
Reputation: 10,217


Return to How do I....?

Who is online

Users browsing this forum: marcoscodas, raulcg1981 and 10 guests