pause game and sound loops
app-etite
Member Posts: 139
Hi Guys,
Ive created a pause button which almost works, it pauses the game and the background music but I also have a sound loop for the characters footsteps, when I press pause the footsteps sound continues to loop.. anyway around this?
Thanks
Ive created a pause button which almost works, it pauses the game and the background music but I also have a sound loop for the characters footsteps, when I press pause the footsteps sound continues to loop.. anyway around this?
Thanks
Comments
im sure i followed your instructions right but its not working.
I have this in the pause button actor.
--------------------------------------------
When actor receives- touch - pressed.. then pause game.
--------------------------------------------
and
-----------------------------
when actor receives touch- pressed
change attribute... game.pausegame to 1
---------------------------------
now on the pause screen itself i have the same pause actor but with different code inside which says...
-----------------------------
when actor receives- touch is pressed
change attribute game.gamepause to 0
and unpause game.
------------------------------
is that right?
thanks
-pause game
-change attribute pause to 1
the unpause is screen is right, then in whatever actor that loops the sound that u want to pause, put the play sound behavior in a rule that states when attriube pause=0
...when actor overlaps the ground then play the footsteps sound, so the footsteps dont play while jumping. at that sound is on loop so it carries on when i press pause. that a problem you think? Thanks