# Making a sprite follow a curved path

**URL:** <https://community.thunkable.com/t/making-a-sprite-follow-a-curved-path/983447>\
**Category:** Questions about Thunkable X\
**Created:** [November 18, 2020, 8:21pm UTC](https://community.thunkable.com/t/making-a-sprite-follow-a-curved-path/983447 "2020-11-18T20:21:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmcs](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@lmcs](https://community.thunkable.com/u/lmcs)\
**Post date:** [November 18, 2020, 8:21pm UTC](https://community.thunkable.com/t/making-a-sprite-follow-a-curved-path/983447/1 "2020-11-18T20:21:27Z")

</div>

Hello Thunkers,

Is there a clean way to make a sprite follow a curved path? Ex. a bird swooping down and going back again. Using a combination of timer and x,y speeds is not really working. I used a trig function (sin of changing angle) to adjust y speed with constant x. Appreciate any pointers.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [November 18, 2020, 8:37pm UTC](https://community.thunkable.com/t/making-a-sprite-follow-a-curved-path/983447/2 "2020-11-18T20:37:50Z")

</div>

Did the trig function work? That would be my suggestion.

---

<div class="post-metadata">

**Author:** ![lmcs](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@lmcs](https://community.thunkable.com/u/lmcs)\
**Post date:** [November 18, 2020, 10:06pm UTC](https://community.thunkable.com/t/making-a-sprite-follow-a-curved-path/983447/3 "2020-11-18T22:06:23Z")

</div>

Yes it works but hard to get the desired curve, takes many iterations. The screen size, speed value, timer setting have to be ‘aligned’ with each other. Changing one value even a bit messes it up - for ex if you want the bird to swoop down faster, all numbers need to be re-worked. I think there should be a easier way to do it… it feels a common need - ex. making a ball bounce in a parabolic path. Maybe using gravity is simpler?

---

<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:21pm UTC](https://community.thunkable.com/t/making-a-sprite-follow-a-curved-path/983447/4 "2024-11-08T12:21:33Z")

</div>


