playMaker

Author Topic: How can I see how time has passed while an FSM is active?  (Read 2011 times)

G-Kaiser

  • Playmaker Newbie
  • *
  • Posts: 34
How can I see how time has passed while an FSM is active?
« on: March 19, 2015, 06:04:44 PM »
Is there an action that will let me determine how much time an FSM is active and store that time in a variable? I am trying to see the amount of time an FSM active until moving back into the start state. Is something like this even possible?

Using Unity 5
Playmaker 1.7.8

Thanks in advance

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: How can I see how time has passed while an FSM is active?
« Reply #1 on: March 19, 2015, 06:59:19 PM »
the action get time and use Time in state
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

G-Kaiser

  • Playmaker Newbie
  • *
  • Posts: 34
Re: How can I see how time has passed while an FSM is active?
« Reply #2 on: March 24, 2015, 05:50:38 PM »
@sebaslive I did as you suggested. But I was hoping to find if there was an action that calculates the entire time an FSM is running. I have 17 states in this particular FSM. I used the get time info action and stored the time of each state in a variable then used add multiple float to get the entire time. Is there an easier and more precise way to do this?

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: How can I see how time has passed while an FSM is active?
« Reply #3 on: March 25, 2015, 07:41:35 AM »
One way I could suggest is to have another FSM that turns on at the same time and gets the time in its state (with only that state). And you can set that value to go to the other state when needed.
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