playMaker

Author Topic: Running faster and jumping higher.  (Read 2228 times)

fromfame

  • Junior Playmaker
  • **
  • Posts: 78
  • Sloppy PM Veteran
Running faster and jumping higher.
« on: August 11, 2013, 07:35:59 AM »
Hey,

Im currently using the UFPS plugin that has a motor of its own that, when i tweak it, it increases/decreases the player's jump height / run speed etc.

so the thing is, how do i alter the component's values once i pick up an orb to power up?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Running faster and jumping higher.
« Reply #1 on: August 14, 2013, 06:00:18 AM »
Hi,

 simply use SetProperty and target that component, you'll have access to all the motor values.

 you can also drag and drop that component ( don't drag the gameobject, drag that very component) onto the action stack of the state and select "set property", then you can scroll through each public  properties of that component.

bye,

Jean

fromfame

  • Junior Playmaker
  • **
  • Posts: 78
  • Sloppy PM Veteran
Re: Running faster and jumping higher.
« Reply #2 on: August 15, 2013, 11:22:20 AM »
Wow that was too easy, thanks and sorry for asking a silly question.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Running faster and jumping higher.
« Reply #3 on: August 15, 2013, 03:18:27 PM »
Hi,

 It's all about learning here, so don't be sorry. Your question is valid :)

bye,

Jean