Audio
Everyone enjoys music while playing, and special effects and of course, voices.
The "Play" command is the way of doing it. You can declare them so they'll have an identifier, if you prefer using the file's name that's ok, just remember that either case they must be in the corresponding directory (music, voice or sound) inside the audio directory.
To view the supported formats, you can take a look at this page.
Declarations:
Music
Playing music:
With declaration:
Without declaration:
You can stop or pause music:
Voice
Sound
With declaration:
Without declaration:
You can also stop a sound with the "stop command.
Last updated