playMaker

Author Topic: Smooth Float  (Read 2293 times)

gozda

  • Junior Playmaker
  • **
  • Posts: 88
Smooth Float
« on: August 14, 2015, 02:30:26 AM »
Hello.
Thete is an action or anyone know how to make float value that smooth follows other value? Like "Float Lerp Advanced" but automaticly follow other value. For simple.. Its from Easy Touch https://dl.dropboxusercontent.com/u/8514696/Asset%20Store/EasyTouchControls/Demo01/Demo01.html
under joystick choose Parameter, and select interia in both axis.

Thanks

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: Smooth Float
« Reply #1 on: August 14, 2015, 08:47:10 AM »
wouldn't Float Lerp Advanced set to every frame solve this?

edit: nope
« Last Edit: August 15, 2015, 01:13:15 AM by terri »

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: Smooth Float
« Reply #2 on: August 15, 2015, 01:13:02 AM »
hey, try this, I think it should work

edit: added finish event
« Last Edit: August 15, 2015, 01:29:00 AM by terri »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Smooth Float
« Reply #3 on: August 15, 2015, 05:43:46 PM »
Hi,

 Great action, but why pre multiplying by 10 the speed in  code?

I'll put it on the Ecosystem when you'll reply, maybe this make sense for your pre multiplier, I want to be sure before putting the code.

Bye,

 Jean

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: Smooth Float
« Reply #4 on: August 16, 2015, 06:15:36 AM »
ops, I think I left that in there by mistake when testing

gozda

  • Junior Playmaker
  • **
  • Posts: 88
Re: Smooth Float
« Reply #5 on: August 17, 2015, 02:12:38 AM »
Yay! AWESOME!! Thanks this will solve my problems :)
I didnt believe that someone will answer my question, but for create an action... Thank You:)