playMaker

Author Topic: Need help increasing joystick values[SOLVED]  (Read 823 times)

chalkzy

  • Playmaker Newbie
  • *
  • Posts: 3
    • View Profile
Need help increasing joystick values[SOLVED]
« on: June 26, 2016, 10:13:03 PM »
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
« Last Edit: June 27, 2016, 01:02:50 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: Need help increasing joystick values
« Reply #1 on: June 27, 2016, 12: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

chalkzy

  • Playmaker Newbie
  • *
  • Posts: 3
    • View Profile
Re: Need help increasing joystick values
« Reply #2 on: June 27, 2016, 12: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?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: Need help increasing joystick values[SOLVED]
« Reply #3 on: June 27, 2016, 01:03:11 AM »
Hi,

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

Bye,

 Jean

chalkzy

  • Playmaker Newbie
  • *
  • Posts: 3
    • View Profile
Re: Need help increasing joystick values[SOLVED]
« Reply #4 on: June 27, 2016, 01: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.