Character keeps facing right for some reason

Every time I press left, the character automatically faces right.

(if you would mind, you can also redesign the sprite. I’m making a horror game and i’m using this sprite as a placeholder)

Here’s the link. https://arcade.makecode.com/S94357-16691-60463-96933

1 Like

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!

1 Like

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).

I think I might know what is happing, if you sent me a link to this platformer game I could fix it.

I fixed the leg breaking thing but as to why the character is vibrating I don’t know…

doesn’t seem to be vibrating as much as before. Thanks. :+1: