Stopping and Starting Music

DannyBuzzbyDannyBuzzby Member, PRO Posts: 157

Hi there

I have been racking my newbie brain to work this out but i cannot.

I have a 3 scene game. I would like to play music and have a button that toggles and in doing so switches the music off or on with the corresponding graphic to show this. i can do this if the music and buttons are in the same scene but when the music is in a different scene to the buttons thats when i have a problem.

Can any of you skilled folk help me to figure whats going on?

i have a rule in scene 1 that says

when attribute game.gameOver is false play music.

therefore as soon as the game starts the music plays. Now on a different scene i have a button that i would like to toggle. toggle off so music stops, toggle on so music carries on

can someone help

sorry if i have explained this to death but this is also so i understand what is going on

Many thanks in advance

Comments

  • DannyBuzzbyDannyBuzzby Member, PRO Posts: 157

    Hi there

    I have been racking my newbie brain to work this out but i cannot.

    I have a 3 scene game. I would like to play music and have a button that toggles and in doing so switches the music off or on with the corresponding graphic to show this. i can do this if the music and buttons are in the same scene but when the music is in a different scene to the buttons thats when i have a problem.

    Can any of you skilled folk help me to figure whats going on?

    i have a rule in scene 1 that says

    when attribute game.gameOver is false play music.

    therefore as soon as the game starts the music plays. Now in scene 3 i have a button that i would like to toggle. toggle off so music stops, toggle on so music carries on

    can someone help

    sorry if i have explained this to death but this is also so i understand what is going on

    Many thanks in advance

  • DannyBuzzbyDannyBuzzby Member, PRO Posts: 157

    Hi there People

    I have solved the problem. Many thanks to those who viewed my problem.

  • DannyBuzzbyDannyBuzzby Member, PRO Posts: 157

    Hurrahh, I have managed to solve this issue. thanks to those who viewed this problem.

Sign In or Register to comment.