Skip to reading
GDScript Programming & Godot

StopMusic()

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
On this page

Stop Music

Stop the current music track.

No options in the standard catalog schema.

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

Code example
await StopMusic({})

In use. Stop the room theme before a silent reveal. It is music-specific and leaves separate effects and voice alone.

PauseMusic()#

Music: Pause

Pause the current music track.

No options in the standard catalog schema.

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

Code example
await PauseMusic({})

In use. Pause music while an in-game device temporarily takes over the soundtrack. The track position is kept for Resume Music.

ResumeMusic()#

Music: Resume

Resume the paused music track.

No options in the standard catalog schema.

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

Code example
await ResumeMusic({})

In use. Use it after the device view closes. If another action replaced the track, the old track is not automatically restored.

Page 201 of 378Permalink
Go to page