# Setting sprite's speed doesn't make the sprite move

**URL:** <https://community.thunkable.com/t/setting-sprites-speed-doesnt-make-the-sprite-move/1354883>\
**Category:** Questions about Thunkable X\
**Tags:** solved, beginner\
**Created:** [June 20, 2021, 1:58pm UTC](https://community.thunkable.com/t/setting-sprites-speed-doesnt-make-the-sprite-move/1354883 "2021-06-20T13:58:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![barbu.stefan410k](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@barbu.stefan410k](https://community.thunkable.com/u/barbu.stefan410k)\
**Post date:** [June 20, 2021, 1:58pm UTC](https://community.thunkable.com/t/setting-sprites-speed-doesnt-make-the-sprite-move/1354883/1 "2021-06-20T13:58:43Z")

</div>

So I’m working on a rhythm game and i’m having sprites added on screen in the upper part and them having them move to the bottom where the player has to touch the corresponding buttons to gain points.  
My issue is that the sprites aren’t actually moving when im setting their y speed to 200.  
I really can’t tell what im doing wrong.  
[https://x.thunkable.com/copy/ee6ceab6a3f67b705129624a893ce01b](https://x.thunkable.com/copy/ee6ceab6a3f67b705129624a893ce01b)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/a/6ad4f2eb1184c3f095cc8398c716f0ecfe0190c4.png)

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [June 20, 2021, 2:56pm UTC](https://community.thunkable.com/t/setting-sprites-speed-doesnt-make-the-sprite-move/1354883/2 "2021-06-20T14:56:09Z")

</div>

The first block in the `do` part of the `create` block should be a `wait` block. This will give the amount of time needed for the code inside the `do` block to take effect.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/3/035951c12c492d7c08c3dc3bf356ae5597cbbb36.png)

or you can even have it as **0** time.

---

<div class="post-metadata">

**Author:** ![barbu.stefan410k](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@barbu.stefan410k](https://community.thunkable.com/u/barbu.stefan410k)\
**Post date:** [June 20, 2021, 4:14pm UTC](https://community.thunkable.com/t/setting-sprites-speed-doesnt-make-the-sprite-move/1354883/3 "2021-06-20T16:14:20Z")

</div>

Thank you so much for taking time to review my issue. I did as you said but it doesn’t seem to work even with 1 seconds in the wait block.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/1/31b7ab164820dd18fd624ca35079d5b42ef52280.png)

I tried 0, 0.01, 0.1, 0.5 and 1 but none seem to work.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [June 20, 2021, 4:36pm UTC](https://community.thunkable.com/t/setting-sprites-speed-doesnt-make-the-sprite-move/1354883/4 "2021-06-20T16:36:45Z")

</div>

Can you share the project link or make a project that only shows the issue and share the link here. The way you reference the variables need to be verified. You are using variables by reference which works but not in all cases.

For the share variable, have you initialized it? If yes then you have to use the following block  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/2/224bbf1925df4a1b6cef5608efb459578b479c4e.png)  
instead of this  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/d/9ddba2f88b661bef19a3d6186a5f2931f03d5c93.png)  
I don’t know if this will have effect but need to check it.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [June 20, 2021, 5:07pm UTC](https://community.thunkable.com/t/setting-sprites-speed-doesnt-make-the-sprite-move/1354883/5 "2021-06-20T17:07:38Z")

</div>

I tried this and I can see it working

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/5/15c31a7eb536c688819fada699eb7fd831dc29d7.png)

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/8/d895a1da0536870f69f95987536ec34a2c28691a.png)

---

<div class="post-metadata">

**Author:** ![barbu.stefan410k](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@barbu.stefan410k](https://community.thunkable.com/u/barbu.stefan410k)\
**Post date:** [June 21, 2021, 10:10am UTC](https://community.thunkable.com/t/setting-sprites-speed-doesnt-make-the-sprite-move/1354883/6 "2021-06-21T10:10:15Z")

</div>

So the issue seems to be using the component variabile. I don’t how this affects the code but after replacing the code to not use component anymore, all seems to be working now.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/b/eb21451edc3f462257a4d5ec2b790f1ba0787c15.png)

---

<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:20pm UTC](https://community.thunkable.com/t/setting-sprites-speed-doesnt-make-the-sprite-move/1354883/7 "2024-11-08T13:20:12Z")

</div>


