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 / Need help with Sound: Newbie

Author
Message
Prince
18
Years of Service
User Offline
Joined: 23rd Aug 2006
Location:
Posted: 24th Aug 2006 03:51
Hello All,
I am new to this. I checked the forums n went through most of the sound related topics but the solutions there didnt work. I have never done any scripting so its kinda hard for me to work it out.

I have added some decals to my game like fire and the sound of fire is heard all over the game. How can I make it audible only when I am in that room?

How do I add background music throughout the game/level? I just started so I dont really have multiple levels right now.
I tried using scripts like repeatsound, soundinzone, soundloopin, but none worked. The sound files I used were default provided like "victory", "incident"..

Any help/guidance is appreciated.

Thanks
Prince
Screwed Over
18
Years of Service
User Offline
Joined: 9th Jul 2006
Location: nowhere and everywhere
Posted: 24th Aug 2006 14:13
to set the game background music, go to build game and then go to level settings and click edit and you will see a box come up where u can change the bg music images huds etc there

Atomic Gamer001
18
Years of Service
User Offline
Joined: 22nd Aug 2006
Location:
Posted: 24th Aug 2006 17:19
I had a problem with the game music on the main menu page of my game. I selected my music but for some reason when i built the game and did all of the other stuff, my game background pic was still that bashed up wall, and my music was that disgusting sci-fi music that makes me mute my speaks. everytime I hear it. How can i make my own stuff work?
Prince
18
Years of Service
User Offline
Joined: 23rd Aug 2006
Location:
Posted: 24th Aug 2006 18:37
Thanks for the solution. It WORKED

I am still waiting for hearing about how to sync the sound overall for decals n stuff.. like the fire sound is heard all over the game no matter where I am.
SoftMotion3D
AGK Developer
19
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 23rd Oct 2006 23:35
Can you run multiple background music

eg. a different music bg for each level? And how the heck is it done?


HELP!!!
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 24th Oct 2006 00:22 Edited at: 24th Oct 2006 02:05
Quote: "Can you run multiple background music
eg. a different music bg for each level? And how the heck is it done?"


Place a dynamic entity and use the music action like so...


Note: I used the user sub-folder, just make sure the music file is in the audiobank.

I need to update my old Radio script to incorporate the scancodes anyway, so I will post it here.


Edit
Here's one (for v1.03) that uses the keys I, O, & P to select 3 different songs.

Save the script as a text file with an fpi extension, and place it in the scriptbank.
Just place an invulnerable entity in your map, like a blood-splat overlay.
Then right click it and set the STATIC MODE to NO, and the ALWAYS ACTIVE to YES.
Next, set its AI MAIN to the script above.

Now you have 3 songs to choose from on the level (you can easily add more).
If the song begins with a tone instead of silence then you'll get reverb if you hold the keys down.




Don't forget to visit Conjured Entertainment

Login to post a reply

Server time is: 2024-11-23 01:14:30
Your offset time is: 2024-11-23 01:14:30