Plays the specified music file.
play_music(music_name)
Argument | Description | Type | Required |
---|---|---|---|
music_name | Name of the music file to play. | String | Yes |
play_music("Victory.ogg");
Results: Plays the music file named “Victory.ogg”.
Use the Play Music function to trigger a different song during a cutscene or to signal the start of a special event in your game.