I made this game to show a problem I have with other games I am making. So the code works when you press the left button. The block doesn’t change and the blue stripe on it faces left.
And when you press the right button, the animation flips.
But when you press the right button again, it flips it back over to facing left
It seems like it is flipping the animation over and over again. How do I make it flip only when it was facing a different direction? Like when you press the right button it won’t flip if it is already facing right.