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
On tap
> If Animation0 is playing > > > Play Animation1 > If Animation1 is playing > > > Play Animation0
> If Animation0 is playing
> > > Play Animation1
> If Animation1 is playing
> > > Play Animation0
is the very simple version. Other factors/events will of course present more complexity.
Develop games in your browser. Powerful, performant & highly capable.
one way...
https://goo.gl/BxQwBl
or maybe ?
https://goo.gl/TSJodA