Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Different music in different levels, the easy way.

Author
Message
Benjamin A
18
Years of Service
User Offline
Joined: 31st Oct 2005
Location: The Netherlands
Posted: 26th Mar 2006 19:35
I know you can pick your own music through the global script, but listening to the same song every level, gets kind of boring.

You could also set up a trigger zone across the complete level and point to your own music, but that's a lot of work..... if you want a triggerzone to cover your complete map.

Here's the easy way I did figure out. Place a triggerzone on your map, but somewhere were the player can never!!! reach it.

Now attach the following script to this triggerzone:


Now let the line sound0 in the triggerzone options point to the wav or ogg file with your music, ogg file prevered, since it's smaller then wav.

You will now hear the music selected throughout the level, all the time you're playing it.

To make it even perfect, download the attached soundfile and place it in the audiobank folder. Attach it to the global script music option (choose build game >>>> level setting tab >>>> global script edit >>>> music) and you will hear no background noises in your music.

Now place a triggerzone with the attach script in each level of your game and you can have a different music track in each level.

Have fun with it.

(If you need lot's of music then check my signature.)

Bored of indoor? Add outdoor to your FPSC games!
http://megagaming.taken.to
Need music for your games? Check the above link also!

Attachments

Login to view attachments
Lost Soul
18
Years of Service
User Offline
Joined: 3rd Feb 2006
Location: Trapped in DOS
Posted: 26th Mar 2006 19:37
also u can put a sound zone over the player and select repeatsound.fpi...

Doom,where the sanest place is behind a trigger.
Benjamin A
18
Years of Service
User Offline
Joined: 31st Oct 2005
Location: The Netherlands
Posted: 26th Mar 2006 20:08
I've tried the sound zone and it just doesn't work at all with me....

Bored of indoor? Add outdoor to your FPSC games!
http://megagaming.taken.to
Need music for your games? Check the above link also!
300 win mag
18
Years of Service
User Offline
Joined: 18th Feb 2006
Location: USA
Posted: 28th Mar 2006 01:05
i just ues the sound zones and put the sound(musc) in the sound zone

Survivor a game in the making
Les Horribres
18
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 28th Mar 2006 05:00
just delete the line

:state=0:music=blah

better since it doesn't load an audio (and this takes ram, even if it is blank)

Mosillivo: Fires Rage, Earth Rumble, Evil Reigns, Cities Tumble
Join the NJL: The War Has Begun, Which Side Are You On?
Nunticaelitusphobic (Scared of Internet)
Conjured Entertainment
AGK Developer
18
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 28th Mar 2006 09:39 Edited at: 28th Mar 2006 09:41
I use light bulbs to play sounds. (try it with the 3d...lol)


Anything can be a trigger.

Don't forget to visit Conjured Entertainment

Login to post a reply

Server time is: 2024-04-18 03:30:28
Your offset time is: 2024-04-18 03:30:28