playMaker

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

Splankton

  • Sr. Member
  • ****
  • Posts: 258
    • View Profile
Timer Stop[SOLVED]
« on: June 19, 2014, 08: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, 09:42:40 AM by Splankton »

sebaslive

  • Hero Member
  • *****
  • Posts: 557
    • View Profile
    • Frame Tale Studios
Re: Timer Stop
« Reply #1 on: June 19, 2014, 08: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: 258
    • View Profile
Re: Timer Stop
« Reply #2 on: June 20, 2014, 09:42:25 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.

Of course :) thanks for your help.