Music: how best to do
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
-
Lovejoy Posts: 2,078
If true
change attribute device.audio.music volume to 1
otherwise
change attribute device.audio.music volume to 0Fortuna Infortuna Forti Una
-
Lovejoy Posts: 2,078
@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
Answers
Thank you, that solves one of the problems nicely. Is the other one as resolvable?
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?
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
Ok, thanks much for your help.
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.