once the player changes an animation it does not change back. I want to make it so on tap sets animation to "1" and when I tap a second time it should set animation to "0" and vice versa
Develop games in your browser. Powerful, performant & highly capable.
This should work:
touch On Tap object Player
... Player is animation "Animation1" playing -> Player Set animation to "Animation2"
... System else -> Player Set animation to "Animation1"
(... means Sub-Event to touch on tap)