@script {
playmusic("data/music/dd2nes_boss.ogg",1);
} @end_script
@cmd playmusic "data/music/dd2nes_boss.ogg" 1
playmusic(name, loop)
- Play a bor music.
- 'name' is the path.
- 'loop': 0 means dont loop, 1 means loop.
playmusic(name, loop, offset)
- Play (stream) a music file
- 'name' is the path.
- 'loop': 0 means dont loop, 1 means loop.
- 'offset': the sample offset of the loop
@script {
playmusic("data/music/dd2nes_boss.ogg",1);
} @end_script
@cmd playmusic "data/music/dd2nes_boss.ogg" 1
If you need to make the music to play when a specific animation plays in your boss, you can add a similar code inside that animation:
Should work as one line too: