# How to create a list of sprites?

**URL:** <https://community.thunkable.com/t/how-to-create-a-list-of-sprites/229384>\
**Category:** Questions about Thunkable X\
**Tags:** tcanvas\
**Created:** [September 16, 2019, 4:06pm UTC](https://community.thunkable.com/t/how-to-create-a-list-of-sprites/229384 "2019-09-16T16:06:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rollke](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/rollke/32/14413_2.png) [@rollke](https://community.thunkable.com/u/rollke)\
**Post date:** [September 16, 2019, 4:06pm UTC](https://community.thunkable.com/t/how-to-create-a-list-of-sprites/229384/1 "2019-09-16T16:06:15Z")

</div>

Hi,  
how can I create a list of sprites?  
This does not work:  
 ![39](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/9/f9a40b9d27c44e78302bf37cd399fc6869031142.png)

After that I want to address the sprites with the “for each” block.

PS: I wanted to do an app like this with a number of balls:

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

---

<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:** [September 16, 2019, 4:39pm UTC](https://community.thunkable.com/t/how-to-create-a-list-of-sprites/229384/2 "2019-09-16T16:39:04Z")

</div>

Hi,

Check it.

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

---

<div class="post-metadata">

**Author:** ![rollke](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/rollke/32/14413_2.png) [@rollke](https://community.thunkable.com/u/rollke)\
**Post date:** [September 17, 2019, 2:57pm UTC](https://community.thunkable.com/t/how-to-create-a-list-of-sprites/229384/3 "2019-09-17T14:57:20Z")

</div>

Now it works.  
But:

- You have to patient to wait for 20 sprites to create (more seems to be impossible)
- Giving every sprite a random angle for the initial motion is still not satisfying
- If you increase the velocity of sprites, many of them leave the canvas and are gone…

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

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)\
**Post date:** [September 17, 2019, 5:20pm UTC](https://community.thunkable.com/t/how-to-create-a-list-of-sprites/229384/4 "2019-09-17T17:20:07Z")

</div>

@rollke, Can you specify what exactly is not working with the blocks that you specify above?

Thanks in advance.

-Mark

---

<div class="post-metadata">

**Author:** ![rollke](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/rollke/32/14413_2.png) [@rollke](https://community.thunkable.com/u/rollke)\
**Post date:** [September 18, 2019, 9:16am UTC](https://community.thunkable.com/t/how-to-create-a-list-of-sprites/229384/5 "2019-09-18T09:16:42Z")

</div>

Hi Mark,  
thank you for for reply.

The “problem” is not so easy to describe.  
First: The generation of a list of sprites works now.

Why did I think that there is a problem? The answer is, that testing the app with thinkable live app (on iPhone SE and on iPad 2018) did not show any sprite. Now I found out, that it really last a longer time to generate the sprites with the create block and I gave up too early. For 20 sprites sometimes you have to wait up to minutes (for more than 20 it seems to be much more).  
After several testing I found out that the delay is even much smaller when running the app after downloading it to the device.

By the way: It would be helpful for beginners to tell them what component means in the block “create…” and what they can do with it (e.g. object of type of the sprite-type).

Second: It still is not easy (or impossible to give sprites an initial direction of movement or determining the direction to change it(). I.e. the bounce statement seems only to work for the edges of the canvas. If sprites collide they do not bounce in my app. So I had to determine the direction of the movement of both to reflect them. But…see above.

If You have solutions for this please let me know.

My sample app

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

Thanks

Karl-Hermann

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)\
**Post date:** [September 18, 2019, 4:08pm UTC](https://community.thunkable.com/t/how-to-create-a-list-of-sprites/229384/6 "2019-09-18T16:08:12Z")

</div>

Karl-Hermann,

Thanks for the detailed report and sample app! We will look into the issues.

-Mark

---

<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:08pm UTC](https://community.thunkable.com/t/how-to-create-a-list-of-sprites/229384/7 "2024-11-08T12:08:56Z")

</div>


