I was surprised to see when I used the rubber stamp to duplicate a sprite, a totally new sprite was created and not another instance of a sprite with the same scripts, etc. How do I create a new instance of the same sprite?
Offline
Do you mean a new costume? Or wait an instance
I'm not sure Scratch can do that
Offline
It's possible, it's just pretty inconvenient in Scratch and you can only do a limited number of instances.
Lemme find a script to show you, give me a minute.
Last edited by Kileymeister (2011-02-04 15:03:02)
Offline
As I said, instance making is difficult. You have to program each instance into one sprite, there's no button to make one.
This script makes one sprite into two instances that move right and left across the stage separately. As you can see this is a much bigger and more complex script than if it were one instance.
Note this piece in the script:
That piece can be copied and pasted multiple times into the forever block to make new instances with the same behavior as the other two, but you must add in an extra starting entry for lists InstanceX, InstanceY, and InstanceDirection (the starting entries are at the top of the script before the forever block).
Last edited by Kileymeister (2011-02-04 15:14:01)
Offline