# \[Solved\] Moving a Sprite to Touch Location

**URL:** <https://community.thunkable.com/t/solved-moving-a-sprite-to-touch-location/298979>\
**Category:** Questions about Thunkable X\
**Tags:** solved, canvas, tcanvas\
**Created:** [November 1, 2019, 5:54pm UTC](https://community.thunkable.com/t/solved-moving-a-sprite-to-touch-location/298979 "2019-11-01T17:54:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![brad.strassburger](https://avatars.discourse-cdn.com/v4/letter/b/ec9cab/32.png) [@brad.strassburger](https://community.thunkable.com/u/brad.strassburger)\
**Post date:** [November 1, 2019, 5:54pm UTC](https://community.thunkable.com/t/solved-moving-a-sprite-to-touch-location/298979/1 "2019-11-01T17:54:27Z")

</div>

I am trying to work through a simple problem while learning about the canvas to make games. Right now all that I want to do is tap the screen and move the sprite object to that location. I feel like I have done everything that should set this in motion, but my code does not work.! I am going to try to upload a screenshot of my code but am not sure this will work. [00%20PM|690x372](https://community.thunkable.com/uploads/short-url/zsS41b9UPvcjI3v2y9YRixTZU4s.png)

---

<div class="post-metadata">

**Author:** ![DouglasRussell](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@DouglasRussell](https://community.thunkable.com/u/DouglasRussell)\
**Post date:** [November 1, 2019, 6:50pm UTC](https://community.thunkable.com/t/solved-moving-a-sprite-to-touch-location/298979/2 "2019-11-01T18:50:53Z")

</div>

Try this:

 ![bully](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/b/0b1b3eeb8ff4b27ff1ae8cd3f43aa45586ac60b1.jpeg)

---

<div class="post-metadata">

**Author:** ![brad.strassburger](https://avatars.discourse-cdn.com/v4/letter/b/ec9cab/32.png) [@brad.strassburger](https://community.thunkable.com/u/brad.strassburger)\
**Post date:** [November 2, 2019, 4:42pm UTC](https://community.thunkable.com/t/solved-moving-a-sprite-to-touch-location/298979/3 "2019-11-02T16:42:42Z")

</div>

That did it. Thank you so much. I am still trying to get used to this block programming thing and I really appreciate the help.

---

<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:08pm UTC](https://community.thunkable.com/t/solved-moving-a-sprite-to-touch-location/298979/4 "2024-11-08T12:08:28Z")

</div>


