playMaker

Author Topic: Timer Stop[SOLVED]  (Read 1817 times)

Splankton

  • Sr. Member
  • ****
  • Posts: 268
Timer Stop[SOLVED]
« on: June 19, 2014, 11:12:14 AM »
Just a quick question,
I have a simple timer inside a START global event and I have a STOP global event that gets called.  If I use something like Get Event Info and get the float value from the time, it returns 0.  I think its because the timer uses every frame, so when the START event is not active the float is then 0.
So how can I  return the float value from my timer, inside my STOP event?
Thanks
« Last Edit: June 20, 2014, 12:42:40 PM by Splankton »

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: Timer Stop
« Reply #1 on: June 19, 2014, 11:21:39 AM »
You can try doing an operator that adds the timer to a separate float value and then you keep that when you go to the stop.
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

Splankton

  • Sr. Member
  • ****
  • Posts: 268
Re: Timer Stop
« Reply #2 on: June 20, 2014, 12:42:25 PM »
You can try doing an operator that adds the timer to a separate float value and then you keep that when you go to the stop.

Of course :) thanks for your help.