Playmaker Forum

PlayMaker Help & Tips => Android Help => Topic started by: chalkzy on June 27, 2016, 01:13:03 AM

Title: Need help increasing joystick values[SOLVED]
Post by: chalkzy on June 27, 2016, 01:13:03 AM
Hi I am using a virtual joystick made by jeanfabre which can be seen here:
http://hutonggames.com/playmakerforum/index.php?topic=10839.0

I am currently using it to move my player around on the XY axis but my object moves too slow. I believe I need to "scale up" the values on the joystick so that they go from say, 0-2, rather than 0-1...

tl;dr need to increase translation speed of play using virtual joystick
Title: Re: Need help increasing joystick values
Post by: jeanfabre on June 27, 2016, 03:49:12 AM
Hi,

 inputs should always remain between -1 and 1 for being generic, then you simply apply a "multiplier" value using FloatMultiply action before you actually use it in your logic to control translation.

Bye,

 Jean
Title: Re: Need help increasing joystick values
Post by: chalkzy on June 27, 2016, 03:54:08 AM
Hi jean,

I could have sworn that's what I had tried before, but I just tried it again and it worked... so thanks?
Title: Re: Need help increasing joystick values[SOLVED]
Post by: jeanfabre on June 27, 2016, 04:03:11 AM
Hi,

 you may have forgot to check "everyframe" when multiplying.

Bye,

 Jean
Title: Re: Need help increasing joystick values[SOLVED]
Post by: chalkzy on June 27, 2016, 04:28:27 AM
Ok, I now have the problem that the value of translation increases very fast and whips the player around, it jumps into the powers of 20 and 40 within seconds...
There must be something very simple I am missing. I need the multiple to only apply to the single instance of the joystick's value but it is instead multiplying the entire thing.