designerszuloo.blogg.se

Clone x use for clones
Clone x use for clones






clone x use for clones

Making the clones based on many attributes Even better, add another When I Start as a Clone hat block and put the command(s) there. If there is something that they should all do instantaneously, put a command block before the if statements. Then, you can start scripting for each button or thing individually: Repeat (3) // replace with the number of clones you need Now, make the following scripts, inside the sprite you are making these clones from: Local variables for whatever properties the clones to have, such as velocity or HP.A local variable to tell the clones what ID they have, called "buttonNumber" in this tutorial.One way to make non-affecting clones is to give each clone an identification number based on which order they were created in.įirst you will need the following variables: Making the clones based on order of creation This type of clone does not require shared information, and therefore is simpler. If a clone's data does not need to be accessed by anything but itself, a non-affecting clone should be used. If a clone needs to have its data (any info about it, such as health points (HP), X position, Y position, etc.) accessible to the other clones or sprites, an affecting clone should be used. 2.2 Making the clones based on many attributes.2.1 Making the clones based on order of creation.








Clone x use for clones