how to continue the music once dead

IncrediboIncredibo Member Posts: 274
edited November -1 in Working with GS (Mac)
Well as the title say's please Help

Regards,
Bo Garza

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    If you want the music to keep playing continously checked the loop box. Then when you want it to stop add the stop music behavior. Then if you want it to start again from where it was add the play music behavior and go down to resume current music.
  • IncrediboIncredibo Member Posts: 274
    i did that & it still doesn't work
    do i have to make an actor some where after the music on/off button
  • AjBlueAjBlue Member Posts: 215
    oh, what you probably need to have is a global boolean attribute saying if its true. when you die it probably resets the button
  • IncrediboIncredibo Member Posts: 274
    So I made the global but now where do i put it's true

    Thank U So Much,
    Bo
  • AjBlueAjBlue Member Posts: 215
    nevermind, i think i might have read it wrong. if you have followed the gamesaladcookbooks tutorial it should have worked
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    what exactly are you trying to do. Are you making a music on off button? because if so you have to use modulos to toggle the attribute for on and off
  • IncrediboIncredibo Member Posts: 274
    Yes I Already have the button Working fine but it doesnt continue once i die
  • IncrediboIncredibo Member Posts: 274
    music doesn't continue once dead
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    This is what you have to do. Have a attribute call it music toggle and have it a interger set to zero. Have a rule when attribute music toggle = 0 change attribute device audio music volume to 10. Then have another rule when attribute music toggle = 1 change attribute device audio music volume to 0.

    Then in the music on off button actor have a rule when touch is pressed change attribute music toggle to (music.toggle+1)%2

    The expression above is modulos. That is how you switch between 1 and 0. If you have rules when touch is pressed change to 1 and when touch is pressed and it equals one change to zero it doesnt work like that. It will work if you do it like i said
  • IncrediboIncredibo Member Posts: 274
    & the music toggle I put in the sound on & off button?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    yes put the music toggle rules in the sound on off button, and the music toggle attribute you make is global and interger
  • IncrediboIncredibo Member Posts: 274
    Thanks & So Anything from before I change all the 1's to 0's
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    nope just have everything like i posted above
  • IncrediboIncredibo Member Posts: 274
    Then how do the image change because I followed step by step & it still stops once dead):

    I TRIPPLED CHECKED
  • IncrediboIncredibo Member Posts: 274
    i may have found why xD
  • IncrediboIncredibo Member Posts: 274
    I BELIEVE I FIXED IT (:
  • IncrediboIncredibo Member Posts: 274
    NO FAIL I FOLLOWED THE COOKBOOK YOU & STILL NO
    SMILE):
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    do u do it? dont worry about changin the image just get it working first
  • IncrediboIncredibo Member Posts: 274
    no it was working then failed again once i died):
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    bogarza said:
    no it was working then failed again once i died):

    Well you need to have a play sound behavior when the scene starts if it resetes the scene when you die
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    what exactly are you trying to accomplish?? it sounds to me like you have the play music or sound rule added to your actor, and when he dies, you destroy it, which kills the rule. Is that correct?

    what is your final goal?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    jonmulcahy said:
    what exactly are you trying to accomplish?? it sounds to me like you have the play music or sound rule added to your actor, and when he dies, you destroy it, which kills the rule. Is that correct?

    what is your final goal?

    Thats what ive been trying to figure out lol. He said he want a sound on off button but then he said the sounds stops when he dies so i think he has the sounds in destroying actor like you said, thats why i told him to put the sounds behaviors in the sound button itself.
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    it seems like a lot of people have been asking questions and expecting answers when they only give 50% of the information.
  • IncrediboIncredibo Member Posts: 274
    haha I am so sorry that I only gave 50% lol okay i have the On/Off Button on there already but when I die I the music seams to stop
    i followed JP's & CookBook & still can't seem to figure it out

    Once Again Im SORRY FOR GIVING 50%
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    do you have a stop music behavior in when the actor dies? you can send me the project if you want me to take a look at it, its up to you
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    how is your play music function setup? where is the rule located? does your on/off button work as you expect? when you say you die, what happens. what sort of rules do you have on your player character? what sort of rules do you have on your playMusic actor (if you have one)?
  • IncrediboIncredibo Member Posts: 274
    @Jon Mulcahy I have the On/Off button & Works fine.....
    no I have the Resume Music on the flag to the next level.....
    Rule is located on the options menu....
    When I die or hit an evil monster I PUT A RULE ON HIM TO RESET SCENCE......
    When It Reset Scence the Music Doesn't Play

    Thanks,
    Bo
Sign In or Register to comment.