Skip to reading
GDScript Programming & Godot

Jump()

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

Jump

Ask the selected character to jump through the adventure extension.

Source table from Jump(), page 123
Option key / fieldMeaning and inputDefault
Character characterIdChoose a Character Designer ID; player is a runtime alias where supported.Blank

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

Code example
await Jump({"characterId": "player"})

In use. Use it for an appropriate controllable character during a test. A jump action does not automatically provide a jump animation, a platforming controller or a valid landing surface; those still depend on the character and room setup.

PlayAnimation()#

Play Animation

Request an animation clip or state on the target entity. Most imported clips start and return immediately.

Source table from Jump(), page 123
Option key / fieldMeaning and inputDefault
Room sceneIdChoose a scene ID.Blank
Character / Object entityIdChoose an entity in the selected scene.Blank
Animation clipChoose a clip/state available to that entity.Blank

Timing. Most imported animation requests return after starting playback. They do not wait for the full clip length; some procedural fallback motions do wait.

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

In use. Use a short, non-looping lever gesture or nod. Confirm the clip/state ID exists on the actual imported model. Looping animations do not have a natural one-shot finish, so do not build story timing on an endless loop.

Page 123 of 378Permalink
Go to page