Set Timeline State Icon Set Timeline State

This action can be used to start, stop, pause or resume a timeline. The timeline must first have been set for the instance using the action Set Instance Timeline, and then you can use this action at any time to change its running state from the following options

OptionDescription
StartStart the timeline assigned to the instance (if the timeline was paused this will set the start position to moment 0 again).
ResumeResume a paused timeline (if the timeline was stopped and not paused this will do nothing).
PausedPause the timeline assigned to the instance (while paused the moments in a timeline will not advance with the game frames).
StopStop the timeline assigned to the instance.

 

Syntax:

Set Timeline State Action

 

Arguments:

ArgumentDescription
StateThe state to put the timeline in (see the table above)

 

Set Timeline State ExampleThe above action block code will check the value held in a global variable and if it is true then the timeline is paused, and if it is false then the timeline will be resumed.