Music: how best to do

TosanuTosanu Member, PRO Posts: 388

I've been trying to lock in music, but my uncertainty with its functions leave me a bit limited. For example, i want to use a boolean on a Music Button so that it can be turned off and on at any time, but the music doesn't seem to react to it. (My setup If True, play music, Loop Yes). Im also wanting to keep the song playing continuously between, say, the credits screen and the menu screen, which you can bounce back and forth between. it works going from A to B, since B has the "resume current music" option, but from B back to A, it resets. Are there good solutions for either of these issues?

Best Answers

  • LovejoyLovejoy Posts: 2,078
    Accepted Answer

    If true
    change attribute device.audio.music volume to 1
    otherwise
    change attribute device.audio.music volume to 0

    Fortuna Infortuna Forti Una

  • LovejoyLovejoy Posts: 2,078
    Accepted Answer

    @Tosanu said:
    Thank you, that solves one of the problems nicely. Is the other one as resolvable?

    Make an index attribute music.cont

    if music.cont is 0

    play music loop

    otherwise

    continue music

    On your next scene make a rule

    change attribute music cont to 1

    Fortuna Infortuna Forti Una

  • LovejoyLovejoy Posts: 2,078
    Accepted Answer

    @Tosanu said:
    Ok, thanks much for your help.
    @Tosanu said:
    One last note, on testing, yes, for some reason the editor doesnt react but the mobile ad hoc testing on a droid did. Thanks again.

    No problem :D

    Fortuna Infortuna Forti Una

Answers

  • TosanuTosanu Member, PRO Posts: 388

    Thank you, that solves one of the problems nicely. Is the other one as resolvable?

  • TosanuTosanu Member, PRO Posts: 388

    I have one last question. My editor testing doesnt react to the first fix. is that just because its on a computer and itll work right when on a device?

  • LovejoyLovejoy Member Posts: 2,078

    I don't use pc so I'm not sure, i tried it on mac and it worked so i figured it would be the same logic. I could be wrong since PC version is far behind in updates.

    Fortuna Infortuna Forti Una

  • TosanuTosanu Member, PRO Posts: 388

    Ok, thanks much for your help.

  • TosanuTosanu Member, PRO Posts: 388

    One last note, on testing, yes, for some reason the editor doesnt react but the mobile ad hoc testing on a droid did. Thanks again.

Sign In or Register to comment.