Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do I do this magic (Showing multiple costumes at once)
- NormalFradOfficial
-
Scratcher
63 posts
How do I do this magic (Showing multiple costumes at once)
Hello, I was just wondering, I've seen quite a few projects where something (like spikes in a platformer) has its own sprite with costumes that are different variants of it, and when the project is run, more than one of the costumes are shown at once, like they are their own sprites.
Do you know how this magic works or do I have to ask griffpatch?
Do you know how this magic works or do I have to ask griffpatch?
This scratch block has 37 characters.
- CHEEZ_ITZ_12oz
-
Scratcher
100+ posts
How do I do this magic (Showing multiple costumes at once)
This is done through clones. A simple setup for stuff like this is as follows
set [id v] to [0] // should be a local variableThis sets the clones up in such a way so you can individually control them.
repeat (10) // number of unique clones
change [id v] by (1)
create clone of [myself v]
end
when I start as a clone
if <(id) = (1)> then
do something
end
if <(id) = (2)> then
do something else
end
- Discussion Forums
- » Help with Scripts
-
» How do I do this magic (Showing multiple costumes at once)

