Music Help

elisf2

Member
Hi guys I am hoping someone can help me. I want the music to play in my project like an album. My project is horror themed I want each music track to play till completion and then move on to the next track is this possible? Any help would be greatly appreciated 
 
Are you making a music player or something?

OTOH, if the music were to be played in level, you must remember that music is stopped at end of level and a new music is played at next level. So how would the music would be played if it's stopped before it's finished?
 
No no blood and gets pinched on the ass not a full slap. Blood I was hoping for the track to play sequencaly the mod I am making has a story that relies on the music . so I I under stand u blood its not possible to do this? Thx in advance for your help
 
elisf2 said:
No no blood and gets pinched on the ass not a full slap.

Ouch!  :o

Blood I was hoping for the track to play sequencaly the mod I am making has a story that relies on the music . so I I under stand u blood its not possible to do this? Thx in advance for your help

Here's a basic music player:

Code:
name    	MusicPlayer
type    	none
offscreenkill	3000


anim	idle
@script
    if(frame==1){
      playmusic("data/music/music1.bor",0);
    }
    if(frame==2){
      playmusic("data/music/music2.bor",0);
    }
    if(frame==3){
      playmusic("data/music/music3.bor",0);
    }
    if(frame==4){
      playmusic("data/music/music4.bor",0);
    }
@end_script
	loop	1
	delay	1
	offset	1 1
	frame	data/chars/misc/empty.gif
	delay	6000
	frame	data/chars/misc/empty.gif
	delay	6000
	frame	data/chars/misc/empty.gif
	delay	6000
	frame	data/chars/misc/empty.gif
	delay	6000
	frame	data/chars/misc/empty.gif

This entity if spawned on level will play music starting from music1.bor. Then 6000 centiseconds later aka 1 minute later, music2.bor is played. Next minute, music3.bor and next minute again music4.bor then a minute later, repeats from music1.bor

You can change the delay for playing the music longer, add more frames for more music and also change the defined path :)

HTH
 
Back
Top Bottom