I need help with clones!


#1

I don't understand clones at all! Can someone please explain in a really simple way?
Thanks!


#2


Check this topic! It explains self and clones very well!

A simple way to explain it is: A clone is a duplicate of the original text. You can change a clone in the "object is cloned" and use them for different purposes.


#3

Thanks! I knew what they were, I just didn't have a clue how to use them!


#4

@IKeudin, hello! It was a long time since I saw you on here! I suggest that you look at the tutorial @BlastFusion posted, it is really good and easy-to-understand!


#5

I can!
Give me a second, I'll do it.


#6

Clones are used for many things, such as bold text, grids, and the pixel art grid I made for your featured project. These are only a few uses, though.

When an object is cloned, the lone goes to the original position of the object. If you want to change it, use a when object is cloned when block. If you want multiple clones to do different things, use self variables.


#7

Thanks! I took a break :slight_smile:


#8

Thanks! That's really handy! I find they all move with the original after a while, is that normal and how can I stop it?


#9

That might be because they use the same rules as the original. If you have a rule "when iPad is pressed, move forward 10" all clones plus the original will move. You can fix this by having a value that tells if the thing that executes the "move forward" is a clone or not.

Welcome back :D


#10

Thanks! I was just
When game starts
Create a clone
Move Forward 10


#11

What's the code of the object?


#12

Oh, that'll do it too.


#13

@IKeudin , do you still do your weekly discussions? They make the forum very interesting, and I love reading them!


#14

Yeah, I'll restart them now!
@BlastFusion, I've made one!