<Tutorial> Specific amount of clones, each with an individual ID, VERY fast!

help
helpwithcode

#1

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:

  • Count
  • Create Clone
  • Current
  • ID

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! :smiley:


Creations of a Noob Dust Sim WONT WORK
How to do fast bold text
Hopscotch Academy - Always accepting new students and teachers!
What are the best methods for fast Cloning?
Valgo's General Topic
#2

Nice tutorial @Valgo!:grinning:


#3

This is awesome dude thanks! And I think I heard somewhere that some Self references don't just apply to a single clone, in the final update? Is that true?


#4

I've never had that.


#5

I like how you had common sense to make ID and my ID separate. I would use one variable.


#6

Self references apply to a single clone


#7

Oh, it must've been something else then


#8

Great tutorial, Zap! :smiley:


#9

Cool, i'll use this! :D


#10

I'd like to use this in a project I'm making - is this free to use, or must I give credit?


#11

It's free to use, it's not too hard to do


#12

Ah, okay. Thank you so much. :smiley: