The Daily Click ::. Forums ::. Klik Coding Help ::. Fade music in/out...
 

Post Reply  Post Oekaki 
 

Posted By Message

T-Bone



Registered
  19/05/2003
Points
  5
4th October, 2003 at 05:40:07 -

I'm making a game using C&C, and was wondering how some games make the music fade between frames? I'm going to use the DMC2 object and make all the music in my game MP3's. Would it be possible for me to make the music fade in/out? If anyone knows, I'd greatly appreciate an explanation.

Thanks!

Image Edited by the Author.

 
n/a

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
4th October, 2003 at 16:58:41 -

The DMC2 object might have a volume control built into it, I dont know. If not you can use the Volume object to change the master volume levels so that you can fade out the music at the end of a frame, and fade back in on the next frame. It takes a little fiddling, but it's a nice effect.

This is really where MMF comes in handy, you could use a Global Event to do it so that you dont have to code it on each frame. But since you have CNC you'll have to do it manually.

Mike

 
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
5th October, 2003 at 04:46:48 -

DMC2 will let you do that, shadow's right.

 
www.thenatflap.co.uk

T-Bone



Registered
  19/05/2003
Points
  5
9th October, 2003 at 03:44:11 -

Thanks alot guys!

 
n/a

Daniel[Crazy_Productions]

Possibly Insane

Registered
  29/12/2002
Points
  2505
9th October, 2003 at 04:57:13 -

but remember that if you are changing the mastervolume make shure that you put the volume that was before the game started in a global value so that you can reset the volume when the user close the game

 
Beware of life ...so far noone have survived it.......
   

Post Reply



 



Advertisement

Worth A Click