Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » How do you use the same custom block in multiple different sprites?
- ResistingGuide4
-
2 posts
How do you use the same custom block in multiple different sprites?
This is a continuation of another forum on this same topic. Here is the old post: Sharing blocks across sprites I created this post because tinypic was saying that all of the pictures on the old post were unavailable. Can someone please explain how to do it?
Pardon my appearance. I am not a new scratcher. I just wanted to change my username and all my other projects were pretty bad.
Pardon my appearance. I am not a new scratcher. I just wanted to change my username and all my other projects were pretty bad.
Last edited by ResistingGuide4 (Aug. 9, 2023 19:46:24)
- Zydrolic
-
1000+ posts
How do you use the same custom block in multiple different sprites?
The topic you linked was a duplicate of this topic over here (EDIT: well, apparently.)
That was also answered — You can click the small bar in the near-bottom left of the code editor titled “Backpack”, then drag over the define block code for the block into it, go to the sprite you wish and drag out the code into the code pane.
Or you can just drag the define block code into the sprite, that works as well.
EDIT2: The answers were #2 and #3.
That was also answered — You can click the small bar in the near-bottom left of the code editor titled “Backpack”, then drag over the define block code for the block into it, go to the sprite you wish and drag out the code into the code pane.
Or you can just drag the define block code into the sprite, that works as well.
EDIT2: The answers were #2 and #3.
Last edited by Zydrolic (Aug. 9, 2023 19:55:29)
- ResistingGuide4
-
2 posts
How do you use the same custom block in multiple different sprites?
Well, there is a problem in that. I happen to be using griffpatch's text engine tutorial. That uses a lot (and I mean, A LOT) of variables and custom blocks. Do you think broad casting a message that calls the block and having global variables for the values?
- medians
-
1000+ posts
How do you use the same custom block in multiple different sprites?
this topic over here (EDIT: well, apparently.)No it wasn't, the topic was made after, and that was a suggestion, not a question. The topic you linked was a duplicate of
That was also answered — You can click the small bar in the near-bottom left of the code editor titled “Backpack”, then drag over the define block code for the block into it, go to the sprite you wish and drag out the code into the code pane.
Or you can just drag the define block code into the sprite, that works as well.
EDIT2: The answers were #2 and #3.
Also, I wouldn't link those because of the fact that it was made in 2.0, but it's still not possible.
Also, tinypic was shut down.
- Zydrolic
-
1000+ posts
How do you use the same custom block in multiple different sprites?
(#4)No that's from 3.0?
No it wasn't, the topic was made after, and that was a suggestion, not a question.
Also, I wouldn't link those because of the fact that it was made in 2.0, but it's still not possible.

EDIT: Im blind forget I said this
Apologies and thank you medians for pointing it out
Last edited by Zydrolic (Aug. 9, 2023 20:22:19)
- -CoolishGames-
-
21 posts
How do you use the same custom block in multiple different sprites?
You can drag blocks from one sprite's code to another sprite (via the sprite pane, below the project when not in fullscreen). I do not remember exactly what happens when you do this with custom blocks (yes I did it before) but I seem to recall it being somewhat glitchy. Maybe they fixed or removed that. I don't know.
I hope I helped you
I hope I helped you

- medians
-
1000+ posts
How do you use the same custom block in multiple different sprites?
It makes a new custom block in that sprite with that code, but you have to copy the define block for that to occur. You can drag blocks from one sprite's code to another sprite (via the sprite pane, below the project when not in fullscreen). I do not remember exactly what happens when you do this with custom blocks (yes I did it before) but I seem to recall it being somewhat glitchy. Maybe they fixed or removed that. I don't know.
I hope I helped you
- Discussion Forums
- » Questions about Scratch
-
» How do you use the same custom block in multiple different sprites?