Play 2 music tracks
MeruChakraAus
Member, PRO Posts: 38
Hi there,
Is there a way to play 2 music tracks?
For example, I have background music that needs to continue unless the player decides to turn it off, i have an actor for that.
Next, I'm doing a voiceover that should play with the music, player should have the option to turn off voice over if needed, or turn of background music if needed (which I have done)....
I've tried to import the voice over as sound, and the background is imported as music, this isn't working.
I've tried both as music, doesn't work!
So whats happening currently is that the background music plays, when I select the voice over, the music stops and voice over starts, doesn't give the player a good experience :-S
Is there a way to play 2 music tracks?
For example, I have background music that needs to continue unless the player decides to turn it off, i have an actor for that.
Next, I'm doing a voiceover that should play with the music, player should have the option to turn off voice over if needed, or turn of background music if needed (which I have done)....
I've tried to import the voice over as sound, and the background is imported as music, this isn't working.
I've tried both as music, doesn't work!
So whats happening currently is that the background music plays, when I select the voice over, the music stops and voice over starts, doesn't give the player a good experience :-S
Comments
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
ok, let me give it a go :-?
I tried what you said. I can pause the sound, but when the actor is pressed again, It doesn't resume the sound where it left off, or it doesn't restart the sound.
I can't figure it out.
I used the integer attribute when touch is pressed change attribute game.music to (game.music+1)%2
Somehow I can't get it to pause the music, even after creating rule:
attribute game.music = 0
Play sound
attribute game.music = 1
interpolate game.audio.sound volume to 0.0 (this one works! to pause the sound)
Duration 2
Cannot unpause sound
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Find out the length of your track in seconds.
Timer: Every XX seconds Play Sound.
(You would also need to stick in a separate 'one off' Play Sound behaviour as the Timer won't start to play the sound until *after* the length of time stipulated).