设置时间轴状态


描述

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

选项 描述
开始 Start the timeline assigned to the instance (if the timeline was paused this will set the start position to moment 0 again).
恢复 Resume a paused timeline (if the timeline was stopped and not paused this will do nothing).
被暂停 Pause the timeline assigned to the instance (while paused the moments in a timeline will not advance with the game frames).
停止 Stop the timeline assigned to the instance.


动作语法:

Set Timeline State Syntax


参数:

参数 描述
状态 The state to put the timeline in (see the table above)


例如:

Set Timeline State Example
The 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.