playMaker

Author Topic: Loop function on Float Interpolate  (Read 3505 times)

marcos

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 199
Loop function on Float Interpolate
« on: February 03, 2012, 07:43:54 PM »
Hey,

Wondering if it would be possible for a loop function to be added to Float Interpolate?

I'm trying to achieve a scrolling texture effect for water, but when i go about looping the FSM containing the interpolation (using events) there is a slight stutter. I could use easeInOut as a work around to mask the stutter, but it would be nice to maintain a linear flow of the animation. I feel that a loop function, that sets the float back to the initial interpolation value might solve this.

(I suppose half of this thread belongs in the help section  :P)


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Loop function on Float Interpolate
« Reply #1 on: February 13, 2012, 01:53:55 AM »
Hi,

Odd, as I tried to create a scene to do this, I realize that float interpolate seems to have a glitch or an odd behavior when trying to do exactly what you are after.

If I loop a state with a float Interpolate ( transition to another state, then transition back). The OnUpdate function of the float Interpolate is never called.


 Bye,

 Jean