Choosig sound channels

Game Editor comments and discussion.

Choosig sound channels

Postby jimmynewguy » Wed Feb 20, 2008 4:31 pm

How do you choose which channel a sound will play on? Because I have 2 sounds playing so I want one to end and the other to keep playing. Plz help :(
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: Choosig sound channels

Postby Kalladdolf » Wed Feb 20, 2008 5:12 pm

in reality the channels are variables.
first create a variable named sound1
then when you want the music tp play:
Code: Select all
sound1 = //play sound;

and the second sound, create a var named sound2:
Code: Select all
sound2 = //play sound;


now, if you want the sound1 to stop:
Code: Select all
stopSound(sound1);

sound1 is the channel in this case which you tell to play and stop. got it?
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron