Discuss Scratch

BabyYodes
Scratcher
6 posts

How do you copy code from one sprite to another?

How do you copy code from one sprite to another? I tried duplicating the code, moving it and clicking on the sprite I want to transfer it to. When I do that, the code that my mouse is “holding” disappears and is replaced by the sprite I clicked on.
-AMETHYSTQUEEN-
Scratcher
1000+ posts

How do you copy code from one sprite to another?

All you have to do is hold the code you want to copy, hover over the sprite you want to add it to. When the sprite background turns blue, let go of the code. When you like on the sprite, the code you copied over should be in that sprite.

Or that's how I do it, there might be other ways though…
BabyYodes
Scratcher
6 posts

How do you copy code from one sprite to another?

It worked, thank you!
lion334
Scratcher
100+ posts

How do you copy code from one sprite to another?

BabyYodes wrote:

How do you copy code from one sprite to another? I tried duplicating the code, moving it and clicking on the sprite I want to transfer it to. When I do that, the code that my mouse is “holding” disappears and is replaced by the sprite I clicked on.

That's easy and you have several ways to do so:

1) Click on the Block and then press ctrl + c, and go to the other Sprite and do ctrl + v
2) But it in your “Storage” (bottom of your Screen) per drag and drop. Go to the other Sprite and drag and drop it out.
3) Drag and Drop the Block directly onto the Sprite Profile Picture.
-AMETHYSTQUEEN-
Scratcher
1000+ posts

How do you copy code from one sprite to another?

BabyYodes wrote:

It worked, thank you!
Your welcome

~~~Resolved~~~~
you don't need to comment anymore here
Gato_Amigo111
Scratcher
500+ posts

How do you copy code from one sprite to another?

BabyYodes wrote:

How do you copy code from one sprite to another? I tried duplicating the code, moving it and clicking on the sprite I want to transfer it to. When I do that, the code that my mouse is “holding” disappears and is replaced by the sprite I clicked on.
Copy the first line and paste it into the new sprites scripts. Use ctrl + c (command + c on a mac) to copy and then use ctrl + v (command + v on a mac) to paste. This should work.

Powered by DjangoBB