Here is your problem, you set your player’s “not moving” state to your facing right animation. So the player’s image reverts back to this every time the player is not moving. (When you stop pressing left) Below is the troubled code.
Your animation style is overcomplicated as well. (The on button pressed play this animation code.) The extension you are using can already detect that. Here is a fixed version → https://arcade.makecode.com/S17614-81654-27547-02217 Can’t wait to play your game, the atmosphere looks really cool so far. I am willing to answer any further questions. Good Luck!
Thank you. I was also making a platformer game before, but I gave up on it because the character kept on vibrating. When I tried fixing it, I created another problem (the character’s appearance didn’t change, even when the health changed).