Music Background HELP

kajutokajuto Member Posts: 314
edited November -1 in Miscellaneous
HI there, thanks you in advance.
I put a actor as Music Background, when i change the scene the music continue, but when i change back from main menu that is where i put the actor music background it's start again, why? how can i put the music to continue even when goes back where it the actor, help please

Comments

  • jfrancisjfrancis Member Posts: 57
    Make an boolean attribute set to false. Then create a rule: attribute =false then play music the after 1 second change the attribute to true Then under the same rule put otherwise continue music.

    I used this technique in this app:
    http://itunes.apple.com/us/app/disasterville-pro/id455623724?ls=1&mt=8
  • kajutokajuto Member Posts: 314
    can you explain more clear? sorry I'm kind of new here...and please i appreciated it
  • jfrancisjfrancis Member Posts: 57
    Sorry about that! Okay. So under the list of behaviours you used for any actor in you main scene you create a rule that says if the attribute (your boolean attribute) = false then drag both a timer, and a play music behaviour inside. Within the timer(after 1 second) change (your boolean attribute to true. Then at the bottom of the rule you'll see a otherwise section where you'll put a play music: in which will say continue music. Don't worry about putting that in other scenes.if you need more help I'm sure they're are some templates help youi
  • kajutokajuto Member Posts: 314
    Thank You, it works !!!! thank you and appreciate it. One last question, i set a actor at the top of the scene and when i move the actor to other position , and press a button to reset the actor to the original position, it don't , why? it only change to another position not where it suppose to be...
    Help Please
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    You can create a blank scene, just solid black so the people seeing this wont know any difference. Put it as the first scene, and put an actor in that scene, and turn its opacity off. In that actor have the play music behavior. Then have a timer that says after 0.5 seconds, or whatever works, change scene to the scene that is the home screen of your game. Then when ever you go back to the home screen from somewhere else in the game, the music will still be playing without starting over. The music will never stop playing throughout the whole game this way, unless you use a stop music behavior somewhere.

    It's total gangster scripting. You may be better off trying out the boolean thing.

    Edit: nvm
Sign In or Register to comment.