# Moving Character Left/Right with Arrows

**URL:** https://community.thunkable.com/t/moving-character-left-right-with-arrows/22367
**Category:** Questions about Thunkable X
**Tags:** beginner
**Created:** [April 17, 2018, 6:56pm UTC](https://community.thunkable.com/t/moving-character-left-right-with-arrows/22367 "2018-04-17T18:56:19Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Ethan\_Lindemann](https://avatars.discourse-cdn.com/v4/letter/e/d26b3c/32.png) [@Ethan\_Lindemann](https://community.thunkable.com/u/Ethan_Lindemann)
#### Post date: [April 17, 2018, 6:56pm UTC](https://community.thunkable.com/t/moving-character-left-right-with-arrows/22367/1 "2018-04-17T18:56:19Z")

</div>

Hello, I am having an issue with a small little game I am trying to make for my class. I have searched all over youtube and the forums and was not able to find any solutions.

Let me explain by what I want to do… I have a student who wants two buttons (Left arrow, right arrow), they then want an imagine (spaceship) and they want this image to go left when u push left and go right when you push right.

I have tried so many ways of code inside thunkable and can not get it to work. Can anyone help me please?

---

<div class="post-metadata">

### Author: ![Red\_Panda](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/red_panda/32/19387_2.png) [@Red\_Panda](https://community.thunkable.com/u/Red_Panda)
#### Post date: [April 17, 2018, 7:08pm UTC](https://community.thunkable.com/t/moving-character-left-right-with-arrows/22367/2 "2018-04-17T19:08:12Z")

</div>

Use two buttons and a canvas. Either

- On button down set speed of your character sprite to 1 and orientation to 0 (or 180)  
On button up set speed of your character sprite to 0
- On button click set character sprite x position to x position + 1 (or - 1)

---

<div class="post-metadata">

### Author: ![Ethan\_Lindemann](https://avatars.discourse-cdn.com/v4/letter/e/d26b3c/32.png) [@Ethan\_Lindemann](https://community.thunkable.com/u/Ethan_Lindemann)
#### Post date: [April 20, 2018, 12:39pm UTC](https://community.thunkable.com/t/moving-character-left-right-with-arrows/22367/3 "2018-04-20T12:39:58Z")

</div>

Hello, thank you for the reply. I am still having trouble. I believe you can not do this in IOS, because I can not add a canvas.

Please advise!

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [April 22, 2018, 10:55am UTC](https://community.thunkable.com/t/moving-character-left-right-with-arrows/22367/4 "2018-04-22T10:55:37Z")

</div>

Hi,

To add canvas, copy the code from the attached file and paste it into the text box shown below.

 ![addcanvastoios](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/e/eeef0c7879f1864959bd281372142d73e37c2014.png)[canvas.txt](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/8/d80b89b4b6d9e739e9792ba97b8c78f7e9f3634c.txt) (675 Bytes)

---

<div class="post-metadata">

### Author: ![Red\_Panda](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/red_panda/32/19387_2.png) [@Red\_Panda](https://community.thunkable.com/u/Red_Panda)
#### Post date: [April 24, 2018, 5:14pm UTC](https://community.thunkable.com/t/moving-character-left-right-with-arrows/22367/5 "2018-04-24T17:14:30Z")

</div>

Oops, did not see the category. Then try it with a WebViewer as @actech proposed

---

<div class="post-metadata">

### Author: ![ruchicar000bz1alw](https://avatars.discourse-cdn.com/v4/letter/r/a6a055/32.png) [@ruchicar000bz1alw](https://community.thunkable.com/u/ruchicar000bz1alw)
#### Post date: [January 11, 2022, 6:04pm UTC](https://community.thunkable.com/t/moving-character-left-right-with-arrows/22367/6 "2022-01-11T18:04:32Z")

</div>

Can somebody help my my character won’t move here is my code:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/7/27ea68bafc7e2b5c980f582b5d5750309b92cfdf.png)

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [January 12, 2022, 9:26am UTC](https://community.thunkable.com/t/moving-character-left-right-with-arrows/22367/7 "2022-01-12T09:26:05Z")

</div>

You are writing in a post created **4 years ago**.  
Create your own post and explain your situation and what have you tried so others can help you.

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 12:03pm UTC](https://community.thunkable.com/t/moving-character-left-right-with-arrows/22367/8 "2024-11-08T12:03:55Z")

</div>


