I have a variable (allowdraw) set to false originally. I have this code:
_root.water_btn.onRelease = function() {
if (allowdraw == false) {
allowdraw = true;
} else {
allowdraw = false
}
};
It sets it to true when the button is released the first time, but won’t set it to false when I press it the second time. Can anyone help?