playMaker

Author Topic: Reset Animated Float Curve? Help[SOLVED]  (Read 2045 times)

reelife

  • Playmaker Newbie
  • *
  • Posts: 10
Reset Animated Float Curve? Help[SOLVED]
« on: August 01, 2013, 02:44:08 PM »
Hi everyone, I'm in need of some dire help. Here's what I'm working on;

My camera have a gui texture attached to it, a black bar simply showing the "Sleep Status" of my character, this bar is shrinking over time thanks to the "Animate Float v2" function.

Then there is a bed next to my character with a box trigger next to it. When my character enters this box and presses "F" the Float variable of the Sleep gui texture (width) should reset.

I've tried many different solutions but none of them works. I've tried using global variables to set the value of the float back, float add, float set, float fsm set but none of those work at all. Please tell me, how do I reset the value of the variable?

Thank you in advance.
« Last Edit: August 02, 2013, 09:49:15 AM by jeanfabre »

reelife

  • Playmaker Newbie
  • *
  • Posts: 10
Im so stupid
« Reply #1 on: August 01, 2013, 03:44:13 PM »
Maybe it's the lack of sleep... but I solved it... Why the hell did I use animation curve? I replaced it with Float Subtract instead and added Max / Min float value, then I just used Float Add on the trigger. Solved, yaay.

jeremiasz

  • Playmaker Newbie
  • *
  • Posts: 1
Re: Reset Animated Float Curve? Help[SOLVED]
« Reply #2 on: September 20, 2013, 04:54:41 PM »
Genius. Thanks :)