Keep Music Playing Through Scenes?

David1334

Member
Hey guys, is there a way to keep one track playing constantly throughout multiple scenes without stopping and restarting the track?
 
but if you need the music to loop properly, you have to place an empty level before the scenes:

Code:
music           data/music/03NSlashersbgm1.ogg 3140050
notime 1
settime 0
background	data/scenes/end/back
panel		data/scenes/end/back
frontpanel	data/scenes/end/back 
order	a

spawn LVL01Darkness
flip 1
coords	160 130
at	0

#spawn	timer
#coords	160 120
#at	0

otherwise the music will still loop , but not from the correct offset - here is a video example of what it looks like:
https://youtu.be/-eAlIWAEoAk?t=339
scene plays music - continues to level - BUT it loops from the begginng
the video uses the current version of the game


in the corrected version, using the level.txt code i posted, the music goes on through the scenes & loops properly in the level.

here is how to place the level before a scene:

Code:
branch NSagain

z 142 240 240
file data/levels/LvL1music.txt
scene data/scenes/demo/sc0.txt
scene data/scenes/demo/empty.txt

z 142 240 240
file	data/levels/lv1aX.txt
...

you will also need this "LVL01Darkness" entity, you can rename it to anything you need - just don't forget to update the models.txt

Code:
name	LVL01Darkness
#type	text
type	none
#subtype noskip
setlayer 999999998 #over hud & everythin#
###setlayer 1000
anim idle
	delay 1
	offset	160 130
	frame	data/chars/stop/01a ## a black rectangle graphic that goes over the hud and everything



 
Back
Top Bottom