So, using the new update, I discovered a cool trick that allows you to get a certain amount of clones, each with its own ID, in less than a second.
You will need 4 device variables:
- Create Clone
Now, make the code below in your own project! My ID can be any object variable you want.
(Click on the photo to see it in more detail)
Make sure you make the Create Clone rule before the Incease Current by 1 rule. Same with the Set Self My ID to ID. Make that before the Increase ID by 1 rule.
How it works: Each time the device variable Create Clone is set to 1 (12 times) and there are less clones than you want (Count), it will create a clone. In another rule, run at the same time, it will increase the Current by 1. This is run by all clones, so the amount of clones will double each time.
When a clone is created, its ID is set to whatever the current ID is. That is also incremented by 1 at the same time.
I hope this helps, and makes your projects much more efficient!