# How to move multiple sprites one after another before completion of previous one?

**URL:** <https://community.thunkable.com/t/how-to-move-multiple-sprites-one-after-another-before-completion-of-previous-one/2893165>\
**Category:** Canvas / Gaming\
**Created:** [March 14, 2024, 2:10pm UTC](https://community.thunkable.com/t/how-to-move-multiple-sprites-one-after-another-before-completion-of-previous-one/2893165 "2024-03-14T14:10:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ushastaaichb](https://avatars.discourse-cdn.com/v4/letter/u/9de0a6/32.png) [@ushastaaichb](https://community.thunkable.com/u/ushastaaichb)\
**Post date:** [March 14, 2024, 2:10pm UTC](https://community.thunkable.com/t/how-to-move-multiple-sprites-one-after-another-before-completion-of-previous-one/2893165/1 "2024-03-14T14:10:43Z")

</div>

Say, one sprite is moving and will take 8 sec to hit the edge/complete the motion. During its movement (in between 8 sec), say after 2 sec, how to move another sprite. I want to move another sprite before completion the movement of first sprite. How is it possible ? Please guide me.

---

<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:** [March 14, 2024, 2:42pm UTC](https://community.thunkable.com/t/how-to-move-multiple-sprites-one-after-another-before-completion-of-previous-one/2893165/2 "2024-03-14T14:42:38Z")

</div>

Hi and welcome to Thunkable!

It’s helpful if you post a screenshot of your blocks or a link to your project. That way someone can advise you about the best way to modify your code.

---

<div class="post-metadata">

**Author:** ![ushastaaichb](https://avatars.discourse-cdn.com/v4/letter/u/9de0a6/32.png) [@ushastaaichb](https://community.thunkable.com/u/ushastaaichb)\
**Post date:** [March 14, 2024, 6:01pm UTC](https://community.thunkable.com/t/how-to-move-multiple-sprites-one-after-another-before-completion-of-previous-one/2893165/4 "2024-03-14T18:01:04Z")

</div>

Thank you for your quick response.

[https://x.thunkable.com/copy/2d66784e5a902545b250e9580315b6a2](https://x.thunkable.com/copy/2d66784e5a902545b250e9580315b6a2)

This code is running. Here, one sprite is coming at any one of the five columns (vertical track) as I defined. But, I want multiple sprites to come simultaneously. They would come at different columns parallelly. Even, they might appear in same column (after certain gap) also.

---

<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:** [March 14, 2024, 10:36pm UTC](https://community.thunkable.com/t/how-to-move-multiple-sprites-one-after-another-before-completion-of-previous-one/2893165/5 "2024-03-14T22:36:35Z")

</div>

Here’s how I would do this:

Project link: [Thunkable](https://x.thunkable.com/copy/1e6a93eb73afd12cdf611e9d3ea98a43)

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/7/27ec2fcd7e0b2b084779acae4cc054070251814a.png)

There’s a couple reasons your blocks were not working:

1. When you use a variable in a function and then call that function multiple times nearly instantaneously (without a Wait block inbetween), the value of the variable is unpredictable. I was initially getting 3 of the same color sprite, for example.

2. You need to use the green `component` block to let Thunkable know you are setting properties for the sprite that was just **created**. Showing a sprite has a different effect than creating one.‘’

![Three sprites](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/3/d3da7a18ba17f1ee6e5c20883ba0362d5791c555.gif)

---

<div class="post-metadata">

**Author:** ![ushastaaichb](https://avatars.discourse-cdn.com/v4/letter/u/9de0a6/32.png) [@ushastaaichb](https://community.thunkable.com/u/ushastaaichb)\
**Post date:** [March 15, 2024, 6:04pm UTC](https://community.thunkable.com/t/how-to-move-multiple-sprites-one-after-another-before-completion-of-previous-one/2893165/6 "2024-03-15T18:04:55Z")

</div>

Thank you once again.
