about music

Groiser

Member
Hi :D !!

anyone know how to insert three musics on one level?
for example:

music1    data/music/....
music2    data/music/....
bossmusic  data/music/....
 
An entity based solution is probably the easiest way. Have an invisible entity spawn where you need the music to change. For the boss, just use @cmd playmusic in its spawn animation.

Code:
name    	music1
type		none
offscreenkill	9999
antigravity 100
animationscript data/scripts/script.c

anim	idle
	delay	1
@cmd	playmusic "data/music/music1.ogg" 1 # Setting 0 stops the music from looping.
	frame	data/chars/blank.png
@cmd	suicide
	frame	data/chars/blank.png
 
If it's just a x scroll based music change, then no entity needed, I think you can just use "at" with music.

Code:
music data/music/1.ogg
at 1200
 
Back
Top Bottom