Skip to reading
GDScript Programming & Godot

StopAnimation()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Stop Animation

Stop the target entity's current animation through the runtime animation route.

Source table from StopAnimation(), page 124
Option key / fieldMeaning and inputDefault
Room sceneIdChoose a scene ID.Blank
Character / Object entityIdChoose an entity in the selected scene.Blank

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await StopAnimation({"sceneId": "lab", "entityId": "archive_door"})

In use. Stop a looping inspection motion before changing the scene. For normal idle/walk behavior, allow the character's state system to resume afterward rather than assuming the stopped pose is a permanent character state.

PauseAnimation()#

Animation: Pause

Pause the target entity's animation playback.

Source table from StopAnimation(), page 124
Option key / fieldMeaning and inputDefault
Room sceneIdChoose a scene ID.Blank
Character / Object entityIdChoose an entity in the selected scene.Blank

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await PauseAnimation({"sceneId": "lab", "entityId": "archive_door"})

In use. Freeze an inspection model while the player reads a note. Pausing a clip does not pause the whole game, music or the character's navigation.

Page 124 of 378Permalink
Go to page