![]() ![]() *Depending on the targetScene number, set the correct song name. Alternatively, you can make this work with the stage name as a String.*/įunction startMusic(targetScene:int):void *This function sets the target song based on location. Var musicChannel:SoundChannel = new SoundChannel() Create a sound channel for playing audio. Alternatively, you could just name this an int and store the scene number. *Create a string variable for the name of the song that should be playing. Create a variable to indicate whether the music is muted. Scene 1 > Setting > Option > Audio/Sound (play/mute) <- i put this code here ![]() I found these codes in other website, i think these code will help me, I tried,īut at the end, i just make myself more confused. So how to make all sound in each scene are mute, but all audio are play? How do I call sound and audio for each scene(sound) and frame(audio)?Įxample, right now in scene 3, if i mute sound and play audio, Scene 1 > Setting > Option > Audio/Sound (play/mute) ![]() The problem is each scene has setting button, in setting button has option buttonįor option button have two button, audio button and sound button, either to mute or play. Sound - background music for game (use looping)Īudio - dialogue, shoot sound, explosion, etc (by frame) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |