sound on a scene to be played once only

digibdigib Member Posts: 15
Hey there guys,
A little help needed here -

I want a sound to be played as a scene is launched but not when the reset scene betton is pressed.
There are over 20 scenes in the game and for each scene there is a different launching sound.

What's the best way to do it?

Thanks:-)

Comments

  • BoomshackBarryBoomshackBarry Member Posts: 712
    edited May 2013
    Just create a game boolean attribute (so that it won't be reset when the scene is reset) for each sound and set it to off. Then at the start of the scene have a rule:

    if game.(attribute)=off then{

    play the sound;
    then toggle the boolean to on;
    }

    That way it will only play the first time, until you reset the game attribute :)
  • digibdigib Member Posts: 15
    Thanks!!
  • FajlajpFajlajp Member Posts: 666
    @digib
    Look on the pm I've sent you
Sign In or Register to comment.