Reseting scene, but not the music?

MaikeMaike Member Posts: 7
edited November -1 in Working with GS (Mac)
When my main character dies, I want the scene to be reset (works fine), but the music starts again as well. I want the music to continue playing (which is different music for every scene) but the scene to reset. How?

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi Maike, the only way I can think of is the following, although there's inevitably a small gap between the music pausing and starting up again:

    Game attribute (boolean) called pauser for instance.
    An actor outside of your screen, with the following:

    When game.pauser is false
    Play Music
    Sound: -----
    Otherwise
    Play Music
    Sound: Resume Current Music

    and in your rules or button to start the level afresh:

    When actor receives touch is pressed
    when game.pauser is false
    Change Attribute game.pauser to true

    Pause Music
    Change Scene
    the same scene as your in

    Hope it helps.

    :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Sign In or Register to comment.