Song Problem, please Help, Maybe Bug?
Hello guys, how are you?
Im Having a Problem, With Music behaiviours.
I have an Actor that Plays Music and Loop on my game Screen.
When YOu go to Game Over Screen the Music Stops.
If You Pause Game, when you Unpause, I Use the behavior Play Music: Resume Current Music.
On Creator works Great!
But On, device The Song only plays the firs time, Then When GameOver, and restart, the music doesn't play, It only plays again if you pause and unpause.
Any Clue?
Thanks!
Im Having a Problem, With Music behaiviours.
I have an Actor that Plays Music and Loop on my game Screen.
When YOu go to Game Over Screen the Music Stops.
If You Pause Game, when you Unpause, I Use the behavior Play Music: Resume Current Music.
On Creator works Great!
But On, device The Song only plays the firs time, Then When GameOver, and restart, the music doesn't play, It only plays again if you pause and unpause.
Any Clue?
Thanks!
Comments
You Say this would work If If Change th eVolumen back to 1? even though I never change the volume in the Game?
Cheers.
Thanks!
Make a boolean called play music. First make it so when attribute "play music" is true, start the music. When gameover is true, change attribute play music to false (or when touch is pressed on game over screen). When the main scene is back, change attribute play music to true.
I have another method that is much more complicated so if this doesn't work let me know.
One Actor With:
Play Music
Pause Music
Play Music (Resume)
One Pause Button that:
Pause Music
One Unpause Button that:
Play Music (Resume)
And In GameOver Music Stop.
This work great, kind weird, but works perfect
Cheers.
If so that behavior kills music for some reason even though if you where to use change scene back to the same scene it would work. That has always annoyed me.
If no. Then well Im glad you got something working for you.
Then When Hit: "Play Again" Change Scene to Game Scene, so NO reset scene on my game.
Not sure if it is the same problem.
When I pause and in the pause menu turn the music volume to 0 it is turned on after unpause.
When I pause and in the pause menu turn the music volume to 1 it is turned off after unpause.
The values are still 0 or 1 whatever I switched to but the music doesn't play.
I made a change attribute next to the unpause rule that says change game.Audio.Music Volume to game.Audio.Music Volume.
Stupid but it works in my case.
Cheers,
Ludwig
Lump Apps and My Assets
To play with the volume (under the 'e'): attributes: device: audio: music volume
(0 = silence but the music plays on, like when you put the volume down on your walkman (80's iPod
To pause music: ad the attribute Pause music
To unpause music: ad the attribute play music and choose resume current music
Hope that helps!
Cheers!
Lump Apps and My Assets