Reference ‐ Pausing - KormexGit/GM-Animate GitHub Wiki
Each animation struct has a paused
variable inside. You can access and set this variable directly, or use one of the functions below to set it.
You can also pause your animations by not calling animation_run. Pausing your instances by deactivating them or using an exit
style pause (shown below) will both work to pause animations as well.
if global.paused == true {
exit;
}
animation_run();
animation_set_pause
Sets the pause state of an animation. You can also change the paused
variable in the animation struct directly.
[!NOTE] Pausing is different from the hitstop effect. Pausing will pause everything, including effects, while hitstop only stops the animation itself while effects will continue to update.
animation_set_pause(_pause, _track = 0)
Argument | Type | Description |
---|---|---|
_pause | Boolean | Whether to pause (true) or unpause (false) |
_track | Real (Int) | (Optional) The track to set pausing for. Pass all to pause all tracks at once |
Returns: N/A (Undefined)
animation_get_pause
Returns if an animation track is currently paused or not.
animation_get_pause(_track = 0)
Argument | Type | Description |
---|---|---|
_track | Real (Int) | (Optional) The track to check. Pass all to check if every track is paused |
Returns: N/A (Undefined)