# Sprite speed problem

**URL:** <https://community.thunkable.com/t/sprite-speed-problem/352082>\
**Category:** Questions about Thunkable X\
**Tags:** tcanvas\
**Created:** [December 5, 2019, 9:52am UTC](https://community.thunkable.com/t/sprite-speed-problem/352082 "2019-12-05T09:52:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![txlim96](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@txlim96](https://community.thunkable.com/u/txlim96)\
**Post date:** [December 5, 2019, 9:52am UTC](https://community.thunkable.com/t/sprite-speed-problem/352082/1 "2019-12-05T09:52:52Z")

</div>

Hi guys, I’m building an app that has an effect like a slot machine, but I used multiple sprites as the moving object. I set the speed for all sprites to be the same, but after running some time, the coordinates of the sprites tend to be shifted (the starting position of all sprites are the same).

May I know what’s the issue here?  
[https://x.thunkable.com/projects/5db4731903a402661e6cc682/2001818e-e34b-4c36-a321-9a56f48717f6/blocks](https://x.thunkable.com/projects/5db4731903a402661e6cc682/2001818e-e34b-4c36-a321-9a56f48717f6/blocks)

---

<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:** [December 5, 2019, 1:05pm UTC](https://community.thunkable.com/t/sprite-speed-problem/352082/2 "2019-12-05T13:05:38Z")

</div>

Hi,

The discrepancy is due to the appearance of a delay. I do not see blocks on your screen for synchronizing actions on sprites. Each sprite collides separately and the coordinate 0 is set separately in it. Why did you decide that the sprites should always be moving at the same time?

---

<div class="post-metadata">

**Author:** ![txlim96](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@txlim96](https://community.thunkable.com/u/txlim96)\
**Post date:** [December 5, 2019, 1:28pm UTC](https://community.thunkable.com/t/sprite-speed-problem/352082/3 "2019-12-05T13:28:56Z")

</div>

Thank you for your quick response. May I know what is your suggestion on synchronizing the sprites? Because like in a slot machine, each object needs to be moved together, so the sprites won’t collide with each other (else it just makes the “slot machine” look strange).

I just wanted to check whether the speed of the sprites can be synchronized, but it seems like my method doesn’t work.

---

<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:** [December 5, 2019, 1:41pm UTC](https://community.thunkable.com/t/sprite-speed-problem/352082/4 "2019-12-05T13:41:32Z")

</div>

Check it

[https://x.thunkable.com/projects/5de8fc18528d3ce911758b40/project/properties/designer/](https://x.thunkable.com/projects/5de8fc18528d3ce911758b40/project/properties/designer/)

Best regards, Alex  
[ACtech demo project](https://x.thunkable.com/projects/5d70f93f8a62b4079eedaff2/project/properties/designer/)  
[Thunkable X Basic Programming Course](http://droidscript.ru/main/title_ds15.php)  
[Block Reference](http://droidscript.ru/main/statyi/thunkableios_blockhelper.php)  
[Component Reference](http://droidscript.ru/main/statyi/thunkableios_objects.php)  
[Bug tracker](https://x.thunkable.com/projects/5dbd5243a77acad1b26f851f/project/properties/designer/)  
[Polipaint](https://x.thunkable.com/projects/5db56632a1e1fcefd3932db7/project/properties/designer/)  
[Map canvas](https://x.thunkable.com/projects/5db56eadb7c037443fadb222/project/properties/designer/)  
[Method Inspector](https://x.thunkable.com/projects/5d9310fcdf0a8f208bd2bb11/openProject/designer)  
[Performance](https://x.thunkable.com/projects/5db93ebab8e0fc9c685b3477/project/properties/designer/)

---

<div class="post-metadata">

**Author:** ![txlim96](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@txlim96](https://community.thunkable.com/u/txlim96)\
**Post date:** [December 5, 2019, 2:28pm UTC](https://community.thunkable.com/t/sprite-speed-problem/352082/5 "2019-12-05T14:28:10Z")

</div>

I’ve tried your program, but out of 10 times, there are still several times, where the sprites did not move at the same time.

Besides, what I want is something like a slot machine, where the all the sprites will move at the same speed, and eventually slow down.

Reference image of a slot machine: [https://www.google.com/url?sa=i&source=images&cd=&ved=2ahUKEwiPjbDj2Z7mAhXf7HMBHZTZDG4QjRx6BAgBEAQ&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DEX-uzP6BdjI&psig=AOvVaw0I7rqzoXxNfEe5-shLnJys&ust=1575641927918757](https://www.google.com/url?sa=i&source=images&cd=&ved=2ahUKEwiPjbDj2Z7mAhXf7HMBHZTZDG4QjRx6BAgBEAQ&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DEX-uzP6BdjI&psig=AOvVaw0I7rqzoXxNfEe5-shLnJys&ust=1575641927918757)

---

<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:** [December 5, 2019, 6:53pm UTC](https://community.thunkable.com/t/sprite-speed-problem/352082/6 "2019-12-05T18:53:41Z")

</div>

I think that due to some problems, the simultaneous movement of sprites in Thunkable X is possible only in one case - when all three images are in one moving sprite. How to do it? Unfortunately, with the available functionality, I do not know how to do this.

You can try the solution when sprites fly out from the borders of the canvas, in which the y-coordinates are aligned with one sprite, but the canvas does not work with negative coordinates.

---

<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:** [December 5, 2019, 7:53pm UTC](https://community.thunkable.com/t/sprite-speed-problem/352082/7 "2019-12-05T19:53:44Z")

</div>

Check new version

[https://x.thunkable.com/projects/5de8fc18528d3ce911758b40/project/properties/designer/](https://x.thunkable.com/projects/5de8fc18528d3ce911758b40/project/properties/designer/)

---

<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, 11:46am UTC](https://community.thunkable.com/t/sprite-speed-problem/352082/8 "2024-11-08T11:46:30Z")

</div>


