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.

Newcomers DBPro Corner / Help with my game: Project Lockdown

Author
Message
Getix Interactive
18
Years of Service
User Offline
Joined: 4th Nov 2005
Location: US
Posted: 10th Oct 2006 16:45
Hello all. I'm working on a game, Project Lockdown, originally called Civil Lockdown. I was wondering if there is a way to have music fade without me editing the sound. Any help would be wonderful.
Thanks, Jim.

What can games do for you?
www.getixinteractive.com
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 10th Oct 2006 17:01
Have you even looked at the help files on your pc?

There's only a few music commands and one is called SET MUSIC VOLUME - wonder what that does?

Boo!
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 10th Oct 2006 17:22
Thanks Spooky, you're saving me the job of posting sarcastic comments today



Getix Interactive
18
Years of Service
User Offline
Joined: 4th Nov 2005
Location: US
Posted: 10th Oct 2006 18:02
I realize that, and have tried it... It didn't work at all. I also tried set sound volume, once again, did nothing. I want to FADE the music, so, I was guessing:
do
vol=100
dec vol
set sound volume 1,vol
loop

Would that work? Or does the sounds have to be re-loaded?

What can games do for you?
www.getixinteractive.com
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 10th Oct 2006 19:04 Edited at: 10th Oct 2006 19:05
this will fade it out as with your code did you only set the volume to 99.

vol=100
do
dec vol
set sound volume 1,vol
loop

cheers

its often very simple as most problems are basic ones in the beginning untill you get the simple beginning know how on how your code works.
Gil Galvanti
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 11th Oct 2006 02:24
Yeah 3DEGS is right, you had the vol=100 in the main loop, so every time you decrease it to 99 then reset it to 100

Pirates of Port Royale
Live the life of a pirate.
Profit
18
Years of Service
User Offline
Joined: 19th Feb 2006
Location: United States
Posted: 12th Oct 2006 00:19
Thanks Gil for confirming that.

common people are walking in line.

Mitsu Fly Ride.
Gil Galvanti
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 12th Oct 2006 01:32
Lol, just making sure he understood .

Pirates of Port Royale
Live the life of a pirate.
Getix Interactive
18
Years of Service
User Offline
Joined: 4th Nov 2005
Location: US
Posted: 17th Oct 2006 03:25
My mistake

What can games do for you?
www.getixinteractive.com

Login to post a reply

Server time is: 2024-09-25 11:30:00
Your offset time is: 2024-09-25 11:30:00