This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-01-26 16:13:44

frowned
Scratcher
Registered: 2010-11-02
Posts: 42

Help!

anyone know how to iterate through sprites and check if they are clones from the stopALL method?
I need some help

Offline

 

#2 2011-01-26 18:30:57

Necromaster
Scratcher
Registered: 2010-04-07
Posts: 1000+

Re: Help!

Scratch doesn't do clones... You mean panther? (Well, you COULD make your own clone block)

Offline

 

#3 2011-01-26 23:05:37

frowned
Scratcher
Registered: 2010-11-02
Posts: 42

Re: Help!

I FIGGURED IT OUT! to remove clones after the stopAll is called go to ScriptableScratchMorph>otherops stopAll and add this:

self isClone ifTrue: [self deleteSprite]

between the

t1 _ self ownerThatIsA: ScratchStageMorph.

and

t1 ifNotNil: [t1 stopAll]

lines
cool

Offline

 

Board footer