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.
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.
Bl4ckSh33p thank you for the answer fellow sheep ;D
I�ll try to use that for now! ;]
Develop games in your browser. Powerful, performant & highly capable.
var = 1 - var
it will toggle between 0 and 1
Var = 0
var = 1 - 0 = 1
var = 1
var = 1 - 1 = 0
Hope that helps. :)