when I make a clone from one sprite in stage menu (with RightClick on sprite and click on clone item), "when I start as a clone" HatBlock trigged .
I am sure new sprite is a clone type BUT when I check parent's "my [clones]" reporterBlock is empty!
when I "release" new clone and convert it to temporary, I can see in parent "my [clones]" list.
Yeah, that's the result of a compromise in the design. If you make three sprites and call them Rock, Paper, and Scissors, even if you make the latter two by cloning the first, really all three are at the same semantic level in the project, and if you were using a class/instance OOP system instead of cloning Rock twice to make the other two, you'd have an abstract class called RPS or something that would be the parent of all three. By contrast, if you make 100 copies of each of those and send them bumping into each other, that's a much clearer parent/child relationship.
The compromise was to use making the child in the GUI a proxy for intending it to stand on its own, class-like, whereas making the child in a script is a proxy for intending it to be like one of 100 Rocks or whatever. Eventually even Jens had examples of projects in which that use of one thing as a proxy for a different thing didn't work, so he added the ability to switch between temporary (i.e., instance) clones and permanent (i.e., subclass) clones programmatically.
MY [CLONES] really means "my temporary clones" because that's what Jens wants to know when he uses it. :~) Personally I think MY [CLONES] should mean what MY [OTHER CLONES] means; in my mind there's no such thing as being your own clone. But that's a different question.
thanx bh
jens, I'm so lucky to have you.
1-Can I say to my student that "my [clones]" in blocks is "my [temprary clone]"
and we get better naming & translation in next version Or you have other plan?
2- what about "when i started as clone" Hatblock
hi again bh & jens.
what about "when I start as a clone" HatBlock trigging problem?
"when I start as a clone" never started if I make permanent clone and release it to scene (make it temprary)
"when I start as a clone" runs when the clone is created, not when it becomes temporary.
I confused:
when
1- I duplicate a Oldsprite as NewSp
2- Asign Oldsprite as parent of NewSp
I have normal child and can see that in "my [children]"
3- I right click on sprite name on sprites box and click on release
NewSp added to "my [clone]" list
question is here :
if release item in menu 'convert child sprite to new clone' ,why "when I started as a clone" HatBlock not triggered?
if NewSp is not clone ,why added to "my [clone]" list?
is NewSp clone that created by this method like other temp clones but any differ exist here?
I think that finally clone created and "when I start as a clone" HatBlock must run is at least one step.
senario: user want set "i am clone" variable to "TRUE" when sprite worked as clone by this HatBlock .
But users cant be sure this HatBlock work in every circumvents (when clone maked by convert).