How do I use multiple images?

Can I use multiple images for particles?
I want to make many sweets appear.

What I want to do A)
When Init a particle, choose one of four different images.
It is like a Select node in the visual code.

What I want to do B)
Pause Flipbook Player, fix a Flipbook page for each particle.
(Particle 1 is 2 pages, Particle 2 is 1 page…)

Try packing all of your sprites into a single texture, then use Set Texture Index with a random index in Init, and Set Flipbook Size in Output with the number of rows and columns in your sprite sheet.



Hope this helps!

4 Likes

Wow, thank you so much!!!

I’ll try using "Set Texture Index":sob:

1 Like

I was setting it up to play multiple random animations (flipbooks). Using the random index tip was great for making them all play staring at random frames, but I could not figure out a way to have multiple flipbooks randomize into a single particle, so I duplicated the entire chain for each.

Is there a cleaner way to do it?