How to create a list of sprites?

Hi,
how can I create a list of sprites?
This does not work:
39

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

Hi,

Check it.

https://x.thunkable.com/projects/5d7fb653d054d81544e40d5e/project/properties/designer/

3 Likes

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

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

Thanks in advance.

-Mark

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

Thanks

Karl-Hermann

Karl-Hermann,

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

-Mark