Question about sound on/off button
Xanpakuto
Member Posts: 9
Well this is what I have
Attribute SoundOff interger = 0
My background actor has it when sound off integer is at 0 --> play music
Than I have a sound button when pressed makes attribute Soundoff+1 (Which turns off the music)
- Than spawns a sound off actor
Sound off actor when pressed makes attribute sound off =0 (turns the music back on)
Ok now thats all good, BUT
When I change the scene and I go back with a back button i've made. The button goes back to sound on but the music is off! Is there anyway I can fix this so when the player comes back it shows the sound off button?
Attribute SoundOff interger = 0
My background actor has it when sound off integer is at 0 --> play music
Than I have a sound button when pressed makes attribute Soundoff+1 (Which turns off the music)
- Than spawns a sound off actor
Sound off actor when pressed makes attribute sound off =0 (turns the music back on)
Ok now thats all good, BUT
When I change the scene and I go back with a back button i've made. The button goes back to sound on but the music is off! Is there anyway I can fix this so when the player comes back it shows the sound off button?
Comments
Cheers
Ok.
When the music is turned off, the icon is shown to be red instead of it's earlier color blue.
Ok.
Now when i change a scene and return, the music button is shown to be (on) even though the music is not playing.
What would you like to happen when you return to the scene ? Would you like the music to be playing or not playing (the relationship with the button is obvious enough) ?