Page 1 of 1

Background Music

Posted: Sat Mar 27, 2010 10:12 am
by Filipinio
I went into the FAQ and i did find the ambiet music tutorial but it was no help at all, can someone tell me how to add the background music?

Re: Background Music

Posted: Sat Mar 27, 2010 12:42 pm
by AQT
Filipinio wrote:can someone tell me how to add the background music?
Yes, Mav can, in the very tutorial you mentioned: http://www.gametoast.com/forums/viewtop ... &sk=t&sd=a :?
i did find the ambiet music tutorial but it was no help at all
What exactly do you not understand? If it's the whole thing there's not much we can help you with. You'll just have follow it step by step carefully.

Re: Background Music

Posted: Sat Mar 27, 2010 12:48 pm
by Filipinio
well there were a few things sutch as what were i ment to do with the 4 music files i made? and in the last bit what your ment to add in to the lua
(
Hidden/Spoiler:
SetAmbientMusic(ALL, 1.0, "rep_kam_amb_start", 0,1);
SetAmbientMusic(ALL, 0.99, "rep_kam_amb_middle", 1,1);
SetAmbientMusic(ALL, 0.1,"rep_kam_amb_end", 2,1);
SetAmbientMusic(IMP, 1.0, "cis_kam_amb_start", 0,1);
SetAmbientMusic(IMP, 0.99, "cis_kam_amb_middle", 1,1);
SetAmbientMusic(IMP, 0.1,"cis_kam_amb_end", 2,1);

SetVictoryMusic(ALL, "rep_kam_amb_victory")
SetDefeatMusic (ALL, "all_tat_amb_defeat")
SetVictoryMusic(IMP, "cis_kam_amb_victory")
SetDefeatMusic (IMP, "imp_tat_amb_defeat")
)

i dont understand why it said kam and tat

Re: Background Music

Posted: Sat Mar 27, 2010 12:54 pm
by Maveritchell
Filipinio wrote:i dont understand why it said kam and tat
The names are - like they are in everything - irrelevant. The defeat music name remains unchanged because:
They need to be called "Music1.wav" (this is your "beginning ambient track, or your entire mix if you're doing an assault map), "Music2.wav" (this is your "middle" ambient track - unnecessary if you're doing an assault map), "Music3.wav" (this is your "end" ambient track - unnecessary if you're doing an assault map), and "victory.wav" (this is your "victory" track - plays on mission accomplished).
As you can see from reading the tutorial, you're only working with three ambient tracks and one victory track. If you want your own defeat track you can add that in the same way.

Literally, if you just do exactly what the tutorial says, step-by-step, you'll have a working music (sound) .lvl. If you're trying to learn exactly what does what and why, that's great - but do the tutorial first since it holds your hand through the exact steps of making one.