Solved boss music

Question that is answered or resolved.

DD Tokki

Well-known member
I would like to apply the boss music to the desired part of the boss entity rather than applying it in the level. Can you tell me the script or method?
 
Just insert this code in your stage spawn:

spawn Burnov_fake
Alias Burnov
@script void main() {
playmusic("data/music/dd2nes_boss.ogg",1);
} @end_script

coords 500 190
at 0

You can set the loop offset too:

spawn Willy_Mackey
@script void main() {
playmusic("data/music/ddnes_title.ogg",1,32571);
} @end_script

coords -25 200
item heart
flip 1
at 0

edit: btw, there is a missing info at the manual - there in an extra argument on this function, where you can set the loop sample offset

playmusic(name, loop)

  • Play a bor music.
  • 'name' is the path.
  • 'loop': 0 means dont loop, 1 means loop.

It should be
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
 
Back
Top Bottom