Hi, could we have a Toogle state for every boolean type of action/event?
Toogle Pause/Play for audio for example would be very helpful.
Thanks
Hi. You could try to use a global variable as kind of switch maybe?
If the var is set to 0 (false) music stops, if it is set to 1 music plays. But I did not try this, yet. Just an idea that could work.
Develop games in your browser. Powerful, performant & highly capable.
Bl4ckSh33p thank you for the answer fellow sheep ;D
I�ll try to use that for now! ;]
Try this:
var = 1 - var
it will toggle between 0 and 1
E.g:
Var = 0
var = 1 - 0 = 1
var = 1
var = 1 - 1 = 0
Hope that helps. :)