Music Loops on Scenes

MagoNicolasMagoNicolas Member, PRO Posts: 2,090
edited November -1 in Working with GS (Mac)
hello, I have a question about Music.
How can I do to Play a music loop in multiple scenes, it is that possible?

thanks

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi MagoNicolas; that's possible; very straightforward. Just put your play Music behaviour in a new actor off-stage somewhere in the first scene where you want the music to start. Changing scenes won't affect the playing of it, looped or not. :-)

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

  • MagoNicolasMagoNicolas Member, PRO Posts: 2,090
    It works, but with one great problem¡ If my actor dies it reset scenes, and then music stops :( how can I solved That?
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Without testing, I think the easiest method would be to fade the music in level 1, and then before changing scene, Stop Music.

    In your next scene that resets everytime, put the same actor off screen to start the music again from the beginning. That way, its there waiting to play (but from the beginning again) when the Reset Scene is used. you could have another fade out before the scene is reset.

    You can't have music continuing if it was initiated in level 1, and level 2 is reset, so the above is the next best thing. Hope it works out for you.

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

  • MagoNicolasMagoNicolas Member, PRO Posts: 2,090
    This Says it is possible! http://gamesalad.com/forums/topic.php?id=6297&replies=4#post-54711

    But not working for me! :(
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    MagoNicolas said:
    This Says it is possible! http://gamesalad.com/forums/topic.php?id=6297&replies=4#post-54711

    Sorry MagoNicolas, it doesn't say that. Firemaplegames says: "Unfortunately, you cannot use Reset Scene if you want to keep the music playing." this is what I said as well, in a different way:
    gyroscope said:
    You can't have music continuing if it was initiated in level 1, and level 2 is reset, so the above is the next best thing. Hope it works out for you.

    iPhoneDevForMe suggested another way, but this didn't involve Reset Scene, it was Change Scene, as did firemaplegames.

    So if you need to use Reset Scene, there's no other way other than the compromise i've suggested, sorry.

    I guess it's down to you which method you use.

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

  • MagoNicolasMagoNicolas Member, PRO Posts: 2,090
    YEs! I realize the problem with Reset Scene, But I used Change Scene, From Level to Level it works, But When I am in a Scene, And my actor Dies, I Change And it not longer reset scene, Now it Changes Scene to the current Scene, But didnt Work!

    Thanks For your Method Gyroscope! But If Changing Scene Works From level to Level, it should work for the same level! Hope I Solve this soon!
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Good luck! :-)

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

  • MagoNicolasMagoNicolas Member, PRO Posts: 2,090
    Problem Solved! Thanks! Followed The Other Thread Advice! but didn't remove Reset Scene! Dope!
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Glad it's solved; hope you didn't have too many change attributes for reset!

    :-)

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

Sign In or Register to comment.