Discuss Scratch

RodrigoTeeV
Scratcher
6 posts

how to make this happen

so in my game I'm working on there's are 7 clones moving around, how do I make one of the clones hide but keep the rest of the clones showing instead of all of the clones hiding at the same time.
PhiPhenomenon
Scratcher
500+ posts

how to make this happen

You can assign each of the clones a “Clone ID”. When each clone has a different ID, you can control what the individual clones do.

whenclickedsetcloneIDto1 this sprite onlyrepeat7createcloneofmyselfchangecloneIDby1whenIstartasacloneifcloneID=1thenhide
MrKingofScratch
Scratcher
100+ posts

how to make this happen

PhiPhenomenon wrote:

You can assign each of the clones a “Clone ID”. When each clone has a different ID, you can control what the individual clones do.

whenclickedsetcloneIDto1 this sprite onlyrepeat7createcloneofmyselfchangecloneIDby1whenIstartasacloneifcloneID=1thenhide

when using this method, make sure that the cloneID variable is for this sprite only.
PhiPhenomenon
Scratcher
500+ posts

how to make this happen

MrKingofScratch wrote:

PhiPhenomenon wrote:

You can assign each of the clones a “Clone ID”. When each clone has a different ID, you can control what the individual clones do.

whenclickedsetcloneIDto1 this sprite onlyrepeat7createcloneofmyselfchangecloneIDby1whenIstartasacloneifcloneID=1thenhide

when using this method, make sure that the cloneID variable is for this sprite only.
Yeah, that's kind of what the comment I wrote said.
MrKingofScratch
Scratcher
100+ posts

how to make this happen

PhiPhenomenon wrote:

Yeah, that's kind of what the comment I wrote said.
*Me realizing that there's a comment that says this sprite only* XDD

IG if I missed it someone else could've also missed it too. Not setting the variable to for this sprite only breaks the whole thing, so it's important that people don't miss that step. MB though for reposting, I totally missed that comment. (to my knowledge there is no way of deleting posts)

Last edited by MrKingofScratch (April 1, 2024 04:09:35)

RodrigoTeeV
Scratcher
6 posts

how to make this happen

PhiPhenomenon wrote:

You can assign each of the clones a “Clone ID”. When each clone has a different ID, you can control what the individual clones do.

whenclickedsetcloneIDto1 this sprite onlyrepeat7createcloneofmyselfchangecloneIDby1whenIstartasacloneifcloneID=1thenhide



but when the clone touches the edge how do a make a sprite hide when the clone touches the edge at the same time

Powered by DjangoBB