Discuss Scratch
- Discussion Forums
- » Suggestions
- » Clone numbers/names
- 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
…
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?!
- Lilifant7253
- Scratcher
1000+ posts
Clone numbers/names
Okay. I'm not English… And instead of “grade” “instances” would be better, especially talking about Flash.
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
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. What use could this have?
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
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.English? I'm just talking about the language of FlashOkay. I'm not English… And instead of “grade” “instances” would be better, especially talking about Flash.
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
No ProblemOh…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.English? I'm just talking about the language of FlashOkay. I'm not English… And instead of “grade” “instances” would be better, especially talking about Flash.
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.
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
But I want that the clones of the first grade do something and the second grade clone should do something else. 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.
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
Yes, that's exactly what this script does.But I want that the clones of the first grade do something and the second grade clone should do something else. 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.
- PhirripSyrrip
- Scratcher
500+ posts
Clone numbers/names
That's one solution. You could also have multiple sprites doing different things.Yes, that's exactly what this script does.But I want that the clones of the first grade do something and the second grade clone should do something else. 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.
; ; ; ; ; ; ; ;You thought I'd get away from you, didn't you?!
- Discussion Forums
- » Suggestions
- » Clone numbers/names