HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How do I loop music throughout the map?

12-10-2003, 11:28 PM#1
KiL_JaedeN103
Please reply as soon as possible in step by step process. Thanks.
12-10-2003, 11:46 PM#2
COOLer
you could have a timer trigger that will have event that gose off every ( lenth of music) and then play sound and reset the timer to ( lenth of music). example.

Events
Map initialization
Time - Timer_music expires
Actions
Wait 0.01 seconds
Sound - Stop music After fading
Sound - Play Music
Countdown Timer - Start Timer_music as a One-shot timer that will expire in 30.00 seconds
12-11-2003, 01:34 AM#3
ZealousDemon
Are you wanting to loop multiple songs or just one?
12-11-2003, 01:49 AM#4
KiL_JaedeN103
I only want one song to loop. ;)
12-11-2003, 01:55 AM#5
ZealousDemon
Alright, here's the Trigger I have.

Code:
Music
    Events
        Time - Elapsed game time is 0.10 seconds
    Conditions
    Actions
        Sound - Stop music Immediately
        Sound - Play Song <gen>
        Sound - Set the music list to Song <gen>, starting with a random song
12-11-2003, 02:27 AM#6
KiL_JaedeN103
Thanks a bunch! =)
12-11-2003, 02:56 AM#7
Iceybro
Or better yet just check the box "loop" in the sound editor while editing the properties of the sound. Then just play it once and it'll keep on going until its been stopped via triggers.
12-11-2003, 01:41 PM#8
Vexorian
In fact, you'll only need this:

Events:
Map Initialization
Actions:
Set the music list to Song <gen>, starting with a random song

Sounds cannot be played at map initialization, but you can set the music list at map initialization.

Iceybro: Did you actually try changing a music variable properties? that stuff only appears with sound variables