Hi guys! Im using the create object on a family to get random sprites in my game. Is there a way to create random objects without duplicates? Thanks!
Develop games in your browser. Powerful, performant & highly capable.
You need to provide more detail. Like how many different types of sprites are there? how many sprites do you need to generate?
There is 10 sprites in the family and creating one at a time. Im using create object on the family to generate a random one which is working fine. I just dont want it creating the same one twice in a row.
You need to use the array plugin.
Check this examples :
I figured out my problem using an array. Thank you
i am currently trying to do the same thing but cant get it to work
could you post and example capx of how you did it