# Getting a sprite to "fling"

**URL:** <https://community.thunkable.com/t/getting-a-sprite-to-fling/1999925>\
**Category:** Canvas / Gaming\
**Created:** [August 15, 2022, 10:02am UTC](https://community.thunkable.com/t/getting-a-sprite-to-fling/1999925 "2022-08-15T10:02:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdaughertytee0h](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mdaughertytee0h/32/135228_2.png) [@mdaughertytee0h](https://community.thunkable.com/u/mdaughertytee0h)\
**Post date:** [August 15, 2022, 10:02am UTC](https://community.thunkable.com/t/getting-a-sprite-to-fling/1999925/1 "2022-08-15T10:02:44Z")

</div>

I am attempting to duplicate a project that I have done in App Inventor. In App Inventor you get a flung event handler for a ball object that can be placed on a Canvas. The Event Handler gives you heading and speed which can be used to move the ball in the direction of the fling at a speed matching the flick of your finger.

I can’t seem to find anything in Thunkable that emulates this and as such am struggling to find a way to control the movement of a sprite when it is “flung”.

The code I am using is below:

 ![Screen Shot 2022-08-15 at 5.59.12 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/9/b9471b7f3e1f39130c1093cb1249325b80605fff.png)

(I’m not sure if the picture went through so here’s a brief description.

I am using the dropped event handler for the sprite but I don’t see a way to make the speed of the ball match the speed of the fling and I would say it is difficult to accurately get the sprite to move in the direction of the fling. It will frequently move into another direction when you fling it quickly.

Anyone have any ideas?

---

<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, 1:12pm UTC](https://community.thunkable.com/t/getting-a-sprite-to-fling/1999925/2 "2024-11-08T13:12:57Z")

</div>


