Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » How can I duplicate a script and put it into another sprite?
- 21chrismali
-
Scratcher
25 posts
How can I duplicate a script and put it into another sprite?
Hey all,
Still working on my clicker. I'm confused.
I have two sprites that I want to have the same code for. It's a long string of code, and I'd rather not have to re-write the whole thing. I know I can duplicate a script, but when I try to move it into the second sprite, it doesn't show up. I drag the duplicated version of the script on top of the sprite in the sprites area, and when I click on that sprite, the script simply just doesn't appear.
I know that this worked in 2.0, but is it possible for it to work in 3.0?
Thanks so much,
~21
P.S. Stay tuned for Scratch Clicker!
Still working on my clicker. I'm confused.
I have two sprites that I want to have the same code for. It's a long string of code, and I'd rather not have to re-write the whole thing. I know I can duplicate a script, but when I try to move it into the second sprite, it doesn't show up. I drag the duplicated version of the script on top of the sprite in the sprites area, and when I click on that sprite, the script simply just doesn't appear.
I know that this worked in 2.0, but is it possible for it to work in 3.0?
Thanks so much,
~21
P.S. Stay tuned for Scratch Clicker!
- Tallented-Code-bot
-
Scratcher
100+ posts
How can I duplicate a script and put it into another sprite?
To copy a script, drag the script you want to copy from the scripting area to the sprite palate, and on the sprite you want to copy to.
after a second, the sprite palate will be highlighted blue, and the sprite the script is over will begin to shake some. Then just let go of the mouse and
it will be copied over.
after a second, the sprite palate will be highlighted blue, and the sprite the script is over will begin to shake some. Then just let go of the mouse and
it will be copied over.
- 21chrismali
-
Scratcher
25 posts
How can I duplicate a script and put it into another sprite?
To copy a script, drag the script you want to copy from the scripting area to the sprite palate, and on the sprite you want to copy to.
after a second, the sprite palate will be highlighted blue, and the sprite the script is over will begin to shake some. Then just let go of the mouse and
it will be copied over.
Hmm…I tried that. When I went into the sprite, though, the script wasn't there. I'll try again and see if it works.
Thanks!
~21
- openPoll
-
Scratcher
1000+ posts
How can I duplicate a script and put it into another sprite?
Don't right-click, click duplicate and then move the script on top of the wanted sprite. You simply want to pick up the script and drop it on the sprite.To copy a script, drag the script you want to copy from the scripting area to the sprite palate, and on the sprite you want to copy to.
after a second, the sprite palate will be highlighted blue, and the sprite the script is over will begin to shake some. Then just let go of the mouse and
it will be copied over.
Hmm…I tried that. When I went into the sprite, though, the script wasn't there. I'll try again and see if it works.
Thanks!
~21
The code should go back to where it was in the original sprite and to to the top-left corner of the code editor in the second sprite.
- 21chrismali
-
Scratcher
25 posts
How can I duplicate a script and put it into another sprite?
Don't right-click, click duplicate and then move the script on top of the wanted sprite. You simply want to pick up the script and drop it on the sprite.To copy a script, drag the script you want to copy from the scripting area to the sprite palate, and on the sprite you want to copy to.
after a second, the sprite palate will be highlighted blue, and the sprite the script is over will begin to shake some. Then just let go of the mouse and
it will be copied over.
Hmm…I tried that. When I went into the sprite, though, the script wasn't there. I'll try again and see if it works.
Thanks!
~21
The code should go back to where it was in the original sprite and to to the top-left corner of the code editor in the second sprite.
Thanks! Both of you helped out.
~21
P.S. my clicker's out
- Discussion Forums
- » Questions about Scratch
-
» How can I duplicate a script and put it into another sprite?


