katzin genbatzu
You can also check which animation frame is set instead of using the variable. If it's set to frame 2, the next line switches it back to 0.
Just make sure the animation speed is set to 0, or it will always change itself to the last frame.
Actually here is the shortest method possible to toggle frames:
However Sound can't be set that way, so it doesn't help much in this case.
edit: If you don't know what that's doing, the formula in the parentheses is either true or false, 1 or 0, so 1 times the answer to our question.
1 times 0 sets it to 0, 1 times 1 sets it to 1.