Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » Custom Blocks in Multiple Sprites
- kittyje1
-
5 posts
Custom Blocks in Multiple Sprites
Well, I've been trying to make a game with sprites that have some of the same code. The problem is, I can't make custom blocks across different sprites.
Why do you think that custom blocks are for specific sprites only?
Why do you think that custom blocks are for specific sprites only?
- medians
-
1000+ posts
Custom Blocks in Multiple Sprites
Some people mentioned this here:
https://scratched.gse.harvard.edu/discussions/scratch-20/questions-and-suggestions-scratch-20-alpha.html
Someone suggested this here:
https://scratch.mit.edu/discuss/topic/12015/ (there's an older one but yea)
Ways of doing this:
https://scratched.gse.harvard.edu/discussions/scratch-20/questions-and-suggestions-scratch-20-alpha.html
Someone suggested this here:
https://scratch.mit.edu/discuss/topic/12015/ (there's an older one but yea)
Ways of doing this:
Yes, you can. Or drag it over the other sprites' thumbnails. You can just add it it your backpack, right?
Last edited by medians (June 5, 2023 23:32:09)
hi875230163394: You're similar to valve in that you both hate a certain number…
Medians bamboozled by 3.0 (both projects back up): Original and https://scratch.mit.edu/projects/878470775/
Scratch 0.x, 1.x, 2.x, 3.x and LogoBlocks Archives
medians: Oh god not this utc - 12 thing again..
Fun_Cupcake_i81: What, were you expecting not to see the utc - 12 thing again? THE UTC - 12 THIGN ALWAYS RETURNS. ALWAYS.
medians: I knew it would happen. I was the one who started it last year.
Fun_Cupcake_i81: Well then if you didn't want it back maybe you need to time travel to last year and fix that
Oh wait if you could time travel I think we all know exactly when you would go-
user1: That picture is from 2.0. Now he’s at my house and is my pet.
user2: But this is medians we're talking about, so “from 2.0” can mean the same thing as “from five seconds ago”.
Detect Scratch version here
My other accounts: @selfexplanatory @modesties @chaircard @fireflyhero @dividendyield @colloids @radians @skeuamorphism @dihectogon @anglebisector @aau- @EditBlockColors
i trolled redcat LOL
if you see this
{what method did you use::control hat;
answer on profile ::motion
} ::operators
- kittyje1
-
5 posts
Custom Blocks in Multiple Sprites
Yeah, I tried that.
Doesn't work. It just does nothing.
Doesn't work. It just does nothing.
Last edited by kittyje1 (June 5, 2023 23:38:22)
- medians
-
1000+ posts
Custom Blocks in Multiple Sprites
You also have to put the definition in all sprites you want to use the custom block in for the block to actually run. Well, I tried that.
Doesn't work. It just does nothing.
There may be a way to reduce the number of sprites you need with clones, though.
Last edited by medians (June 5, 2023 23:39:14)
hi875230163394: You're similar to valve in that you both hate a certain number…
Medians bamboozled by 3.0 (both projects back up): Original and https://scratch.mit.edu/projects/878470775/
Scratch 0.x, 1.x, 2.x, 3.x and LogoBlocks Archives
medians: Oh god not this utc - 12 thing again..
Fun_Cupcake_i81: What, were you expecting not to see the utc - 12 thing again? THE UTC - 12 THIGN ALWAYS RETURNS. ALWAYS.
medians: I knew it would happen. I was the one who started it last year.
Fun_Cupcake_i81: Well then if you didn't want it back maybe you need to time travel to last year and fix that
Oh wait if you could time travel I think we all know exactly when you would go-
user1: That picture is from 2.0. Now he’s at my house and is my pet.
user2: But this is medians we're talking about, so “from 2.0” can mean the same thing as “from five seconds ago”.
Detect Scratch version here
My other accounts: @selfexplanatory @modesties @chaircard @fireflyhero @dividendyield @colloids @radians @skeuamorphism @dihectogon @anglebisector @aau- @EditBlockColors
i trolled redcat LOL
if you see this
{what method did you use::control hat;
answer on profile ::motion
} ::operators
- kittyje1
-
5 posts
Custom Blocks in Multiple Sprites
That's really annoying, because I'm trying to complete a CS50 project with specifications.You also have to put the definition in all sprites you want to use the custom block in for the block to actually run. Well, I tried that.
Doesn't work. It just does nothing.
There may be a way to reduce the number of sprites you need with clones, though.
Last edited by kittyje1 (June 5, 2023 23:42:27)
- medians
-
1000+ posts
Custom Blocks in Multiple Sprites
Yeah I told about that on the topic:That's really annoying, because I'm trying to complete a CS50 project with specifications.You also have to put the definition in all sprites you want to use the custom block in for the block to actually run. Well, I tried that.
Doesn't work. It just does nothing.
There may be a way to reduce the number of sprites you need with clones, though.
You may be able to use clones for this though.Or when you have to put a long script in many different sprites, which can especially clutter them (since right now you have to drag the scripts on top of each sprite you want to be able to use the blocks throughout the project (and the Stage potentially). That can be really annoying to do, especially since: I agree, it is too often that I use the same custom blocks across sprites. Sometimes there are smaller chunks of code which would just be easier to put in a function and use throughout the project. For example fading something on or off the screen with ghost effect is something very common and I often make it into one block to keep it concise. In general, global custom blocks across sprites would be a great addition to scratch!Also, to workaround this, you can copy the scripts to each sprite, but that can be tedious to do, can clutter each sprite with code, and there's also that 3.0 bug where the sprites move around, making it difficult to do.
Last edited by medians (June 5, 2023 23:50:36)
hi875230163394: You're similar to valve in that you both hate a certain number…
Medians bamboozled by 3.0 (both projects back up): Original and https://scratch.mit.edu/projects/878470775/
Scratch 0.x, 1.x, 2.x, 3.x and LogoBlocks Archives
medians: Oh god not this utc - 12 thing again..
Fun_Cupcake_i81: What, were you expecting not to see the utc - 12 thing again? THE UTC - 12 THIGN ALWAYS RETURNS. ALWAYS.
medians: I knew it would happen. I was the one who started it last year.
Fun_Cupcake_i81: Well then if you didn't want it back maybe you need to time travel to last year and fix that
Oh wait if you could time travel I think we all know exactly when you would go-
user1: That picture is from 2.0. Now he’s at my house and is my pet.
user2: But this is medians we're talking about, so “from 2.0” can mean the same thing as “from five seconds ago”.
Detect Scratch version here
My other accounts: @selfexplanatory @modesties @chaircard @fireflyhero @dividendyield @colloids @radians @skeuamorphism @dihectogon @anglebisector @aau- @EditBlockColors
i trolled redcat LOL
if you see this
{what method did you use::control hat;
answer on profile ::motion
} ::operators
- Discussion Forums
- » Questions about Scratch
-
» Custom Blocks in Multiple Sprites