ProtoFlux:ElapsedTime
More actions
The Elapsed Time node keeps track of how long it has been since the last time it was called. This node starts automatically, and when it is not called, it just uses the world time as the default result. Spawning multiple nodes will show that they keep track of their own individual value.
Nodes loaded from a save continue their output from the value they had when they were saved. (A SyncTime is used internally to track how much time has passed.)
ElapsedTime is often a critical node in creating animations with ProtoFlux, as it works with flow, meaning things can trigger it and it can easily sync with other things like audio or functional components.
Inputs
Reset (Call)
Calls an impulse to reset the elapsed time.
Outputs
OnReset (Continuation)
Fires after this node has reset their elapsed time value.
* (Pseudo-generic)
Returns the amount of time it has been since this node has been called. Float values measure time in seconds.