Discuss Scratch

Lilifant7253
Scratcher
1000+ posts

Clone numbers/names

I'd like it if the clone would get numbers or if there would be a block to name clones. Or the clones could get at least a note like this first grade, second grad, third grad … First grad = clone of a sprite
Second grad = clone of a first grade clone
Third grad = clone of a second grade clone

Last edited by Lilifant7253 (Aug. 17, 2013 12:29:45)


I've reached the 1000+ post rank on wednesday, 11th Sept., 2013 18:29 (German time) / 12:29 (Eastern Standard Time)
Hi! I Iike helping others. So feel free to leave a question at my profile!

PhirripSyrrip
Scratcher
500+ posts

Clone numbers/names

What use could this have?

; ; ; ; ; ; ; ;You thought I'd get away from you, didn't you?!
turkey3
Scratcher
1000+ posts

Clone numbers/names

And instead of “grade” “instances” would be better, especially talking about Flash.

Lilifant7253
Scratcher
1000+ posts

Clone numbers/names

turkey3 wrote:

And instead of “grade” “instances” would be better, especially talking about Flash.
Okay. I'm not English…

I've reached the 1000+ post rank on wednesday, 11th Sept., 2013 18:29 (German time) / 12:29 (Eastern Standard Time)
Hi! I Iike helping others. So feel free to leave a question at my profile!

Lilifant7253
Scratcher
1000+ posts

Clone numbers/names

PhirripSyrrip wrote:

What use could this have?
If you make more than one clone of a sprite you can use them to different things. And the grade (or instance) thing is useful if clones of clones should do different things than the clones of the sprite.

I've reached the 1000+ post rank on wednesday, 11th Sept., 2013 18:29 (German time) / 12:29 (Eastern Standard Time)
Hi! I Iike helping others. So feel free to leave a question at my profile!

turkey3
Scratcher
1000+ posts

Clone numbers/names

Lilifant7253 wrote:

turkey3 wrote:

And instead of “grade” “instances” would be better, especially talking about Flash.
Okay. I'm not English…
English? I'm just talking about the language of Flash

Lilifant7253
Scratcher
1000+ posts

Clone numbers/names

turkey3 wrote:

Lilifant7253 wrote:

turkey3 wrote:

And instead of “grade” “instances” would be better, especially talking about Flash.
Okay. I'm not English…
English? I'm just talking about the language of Flash
Yes, I know! I'd just say that I'm not so good in English that I don't know the diference between grade and instance.

I've reached the 1000+ post rank on wednesday, 11th Sept., 2013 18:29 (German time) / 12:29 (Eastern Standard Time)
Hi! I Iike helping others. So feel free to leave a question at my profile!

turkey3
Scratcher
1000+ posts

Clone numbers/names

Lilifant7253 wrote:

turkey3 wrote:

Lilifant7253 wrote:

turkey3 wrote:

And instead of “grade” “instances” would be better, especially talking about Flash.
Okay. I'm not English…
English? I'm just talking about the language of Flash
Yes, I know! I'd just say that I'm not so good in English that I don't know the diference between grade and instance.
Oh…

Lilifant7253
Scratcher
1000+ posts

Clone numbers/names

turkey3 wrote:

Lilifant7253 wrote:

turkey3 wrote:

Lilifant7253 wrote:

turkey3 wrote:

And instead of “grade” “instances” would be better, especially talking about Flash.
Okay. I'm not English…
English? I'm just talking about the language of Flash
Yes, I know! I'd just say that I'm not so good in English that I don't know the diference between grade and instance.
Oh…
No Problem

I've reached the 1000+ post rank on wednesday, 11th Sept., 2013 18:29 (German time) / 12:29 (Eastern Standard Time)
Hi! I Iike helping others. So feel free to leave a question at my profile!

ProdigyZeta7
Scratcher
1000+ posts

Clone numbers/names

Why not just make a local variable “grade” and have it increase by one once it inherits the variable? Like this:

when green flag clicked
set {grade v} to {0}
repeat (whatever)
create clone of myself
end repeat


when I start as a clone
change {grade v} by (1)
if <(grade) = {1}>
create clone of myself

else
if <(grade) = {2}>

else

end if else
end if else

EDIT: You can do the same with costumes.

Last edited by ProdigyZeta7 (Aug. 18, 2013 12:36:33)




Lilifant7253
Scratcher
1000+ posts

Clone numbers/names

ProdigyZeta7 wrote:

Why not just make a local variable “grade” and have it increase by one once it inherits the variable? Like this:

when green flag clicked
set {grade v} to {0}
repeat (whatever)
create clone of myself
end repeat


when I start as a clone
change {grade v} by (1)
if <(grade) = {1}>
create clone of myself

else
if <(grade) = {2}>

else

end if else
end if else

EDIT: You can do the same with costumes.
But I want that the clones of the first grade do something and the second grade clone should do something else.

I've reached the 1000+ post rank on wednesday, 11th Sept., 2013 18:29 (German time) / 12:29 (Eastern Standard Time)
Hi! I Iike helping others. So feel free to leave a question at my profile!

ProdigyZeta7
Scratcher
1000+ posts

Clone numbers/names

Lilifant7253 wrote:

ProdigyZeta7 wrote:

Why not just make a local variable “grade” and have it increase by one once it inherits the variable? Like this:

when green flag clicked
set {grade v} to {0}
repeat (whatever)
create clone of myself
end repeat


when I start as a clone
change {grade v} by (1)
if <(grade) = {1}>
create clone of myself

else
if <(grade) = {2}>

else

end if else
end if else

EDIT: You can do the same with costumes.
But I want that the clones of the first grade do something and the second grade clone should do something else.
Yes, that's exactly what this script does.



PhirripSyrrip
Scratcher
500+ posts

Clone numbers/names

ProdigyZeta7 wrote:

Lilifant7253 wrote:

ProdigyZeta7 wrote:

Why not just make a local variable “grade” and have it increase by one once it inherits the variable? Like this:

when green flag clicked
set {grade v} to {0}
repeat (whatever)
create clone of myself
end repeat


when I start as a clone
change {grade v} by (1)
if <(grade) = {1}>
create clone of myself

else
if <(grade) = {2}>

else

end if else
end if else

EDIT: You can do the same with costumes.
But I want that the clones of the first grade do something and the second grade clone should do something else.
Yes, that's exactly what this script does.
That's one solution. You could also have multiple sprites doing different things.

; ; ; ; ; ; ; ;You thought I'd get away from you, didn't you?!

Powered by DjangoBB