# How to make Sprite not pass over the edges of canvas

**URL:** <https://community.thunkable.com/t/how-to-make-sprite-not-pass-over-the-edges-of-canvas/955028>\
**Category:** Questions about Thunkable X\
**Created:** [November 5, 2020, 10:22pm UTC](https://community.thunkable.com/t/how-to-make-sprite-not-pass-over-the-edges-of-canvas/955028 "2020-11-05T22:22:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hoanggwtfx](https://avatars.discourse-cdn.com/v4/letter/h/bc79bd/32.png) [@hoanggwtfx](https://community.thunkable.com/u/hoanggwtfx)\
**Post date:** [November 5, 2020, 10:22pm UTC](https://community.thunkable.com/t/how-to-make-sprite-not-pass-over-the-edges-of-canvas/955028/1 "2020-11-05T22:22:29Z")

</div>

When dragging (strong) the sprite and then releasing it, the sprite will pass over the edges of the state

> **[Thunkable](https://x.thunkable.com/copy/5f3bbedc88cfe9acad10a7aa0219d5ad)**

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [November 6, 2020, 10:53pm UTC](https://community.thunkable.com/t/how-to-make-sprite-not-pass-over-the-edges-of-canvas/955028/2 "2020-11-06T22:53:45Z")

</div>

Thanks for the link @hoanggwtfx, is this while live testing or installing?

What sort of game are you trying to create and will this behaviour stop you from working on your app?

Thanks,  
Domhnall

---

<div class="post-metadata">

**Author:** ![hoanggwtfx](https://avatars.discourse-cdn.com/v4/letter/h/bc79bd/32.png) [@hoanggwtfx](https://community.thunkable.com/u/hoanggwtfx)\
**Post date:** [December 6, 2020, 5:04pm UTC](https://community.thunkable.com/t/how-to-make-sprite-not-pass-over-the-edges-of-canvas/955028/3 "2020-12-06T17:04:46Z")

</div>

I’m in the process of making a drag and drop game on thunkable, but I don’t know how I can drag and drop objects. I used sprite in a canvas, but the sprite is easy to lose control and easily pass over the canvas when you pull hard.

---

<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:19pm UTC](https://community.thunkable.com/t/how-to-make-sprite-not-pass-over-the-edges-of-canvas/955028/4 "2024-11-08T12:19:54Z")

</div>


