# Character keeps facing right for some reason

**URL:** <https://forum.makecode.com/t/character-keeps-facing-right-for-some-reason/30088>\
**Category:** Help\
**Created:** [August 12, 2024, 1:50am UTC](https://forum.makecode.com/t/character-keeps-facing-right-for-some-reason/30088 "2024-08-12T01:50:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bozo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bozo/32/11137_2.png) [@Bozo](https://forum.makecode.com/u/Bozo)\
**Post date:** [August 12, 2024, 1:50am UTC](https://forum.makecode.com/t/character-keeps-facing-right-for-some-reason/30088/1 "2024-08-12T01:50:20Z")

</div>

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](https://arcade.makecode.com/S94357-16691-60463-96933)

---

<div class="post-metadata">

**Author:** ![Bifrosty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bifrosty/32/24819_2.png) [@Bifrosty](https://forum.makecode.com/u/Bifrosty)\
**Post date:** [August 15, 2024, 10:25pm UTC](https://forum.makecode.com/t/character-keeps-facing-right-for-some-reason/30088/2 "2024-08-15T22:25:16Z")

</div>

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.

 ![Screenshot 2024-08-15 at 3.45.06 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/3/c/3c2772a1b1770b184d947aa8b34ff08d54b73320.jpeg)  
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](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!

---

<div class="post-metadata">

**Author:** ![Bozo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bozo/32/11137_2.png) [@Bozo](https://forum.makecode.com/u/Bozo)\
**Post date:** [August 20, 2024, 1:58pm UTC](https://forum.makecode.com/t/character-keeps-facing-right-for-some-reason/30088/3 "2024-08-20T13:58:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Bifrosty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bifrosty/32/24819_2.png) [@Bifrosty](https://forum.makecode.com/u/Bifrosty)\
**Post date:** [August 20, 2024, 5:31pm UTC](https://forum.makecode.com/t/character-keeps-facing-right-for-some-reason/30088/4 "2024-08-20T17:31:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Bozo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bozo/32/11137_2.png) [@Bozo](https://forum.makecode.com/u/Bozo)\
**Post date:** [August 21, 2024, 2:41pm UTC](https://forum.makecode.com/t/character-keeps-facing-right-for-some-reason/30088/5 "2024-08-21T14:41:55Z")

</div>

> **[Little creature #3](https://arcade.makecode.com/S33148-88824-21684-80960)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Bifrosty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bifrosty/32/24819_2.png) [@Bifrosty](https://forum.makecode.com/u/Bifrosty)\
**Post date:** [August 22, 2024, 10:20pm UTC](https://forum.makecode.com/t/character-keeps-facing-right-for-some-reason/30088/6 "2024-08-22T22:20:08Z")

</div>

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

> **[Little creature #3](https://arcade.makecode.com/S54729-28220-92158-78978)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Bozo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bozo/32/11137_2.png) [@Bozo](https://forum.makecode.com/u/Bozo)\
**Post date:** [August 29, 2024, 4:49pm UTC](https://forum.makecode.com/t/character-keeps-facing-right-for-some-reason/30088/7 "2024-08-29T16:49:10Z")

</div>

doesn’t seem to be vibrating as much as before. Thanks. 👍
