Motion
Get Motion

ReferenceScript nodesAudio

Play Sound

Plays a sound file of the scene's folder (loaded as the scene opens); Finished goes on when it ends.

AudioplaySound

Inputs

PinTypeStarts atNotes
inwhat happens next––
Filefiletext"sounds/chime.…"–
Volumevolumenumber1–
Panpannumber0–
Rateratenumber1–
Looploopboolfalse–

Outputs

PinType
thenwhat happens next
Finishedfinishedwhat happens next
Voicevoiceany

The code it becomes

The graph below written as a script would write it.

let s2_voice = undefined;let q2 = scene.loadSound("sounds/chime.ogg");// On Scene Start(function (v) { s2_voice = v; v.ended.then(function () {    }); })(q2.play({ volume: 1, pan: 0, rate: 1, loop: !!(false) }));scene.log(s2_voice);

In a graph

The node with what starts it and Print to show what it gives, as Studio draws them.