# Issues with moving left and right

**URL:** <https://forum.code.org/t/issues-with-moving-left-and-right/38091>\
**Category:** Uncategorized\
**Created:** [May 10, 2023, 3:48pm UTC](https://forum.code.org/t/issues-with-moving-left-and-right/38091 "2023-05-10T15:48:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kabraham](https://avatars.discourse-cdn.com/v4/letter/k/51bf81/32.png) [@kabraham](https://forum.code.org/u/kabraham)\
**Post date:** [May 10, 2023, 3:48pm UTC](https://forum.code.org/t/issues-with-moving-left-and-right/38091/1 "2023-05-10T15:48:05Z")

</div>

I have two students who cannot move their sprites left and right. The code looks correct, would love another set of eyes!

[[Game Lab - Code.org](https://studio.code.org/projects/gamelab/BtgQOyevUhHhHQxCw76Z7fLBxNgDX6QW8aIcJmmT-F0)]

[[Game Lab - Code.org](https://studio.code.org/projects/gamelab/yrrdiowpVue6DH0-qimZ2V4D3W9K0xhMaKIJ-Kz0F48)]

I am sure it is something very easy that I am just not seeing. Thanks!

---

<div class="post-metadata">

**Author:** ![mwood](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mwood/32/4941_2.png) [@mwood](https://forum.code.org/u/mwood)\
**Post date:** [May 10, 2023, 6:24pm UTC](https://forum.code.org/t/issues-with-moving-left-and-right/38091/2 "2023-05-10T18:24:05Z")

</div>

The first one appears to be working … the polar bear responds to the arrow keys.

The 2nd one, the player control function needs to be called from inside the draw loop rather than outside the loop. As is, it is getting called exactly one time.

Good luck!

Mike
