Discuss Scratch

24ykuwajima
Scratcher
1 post

Access custom blocks from all sprites (global procedures)

YEAH! This is definitely needed, I'm making a game that spawns enemies but has many different types of enemies, this would be so useful!!!

I SUPPORT x 10
dah_creepah
Scratcher
64 posts

Access custom blocks from all sprites (global procedures)

bumb

@dah_creepah here

enjoy some of my games-
https://scratch.mit.edu/projects/623338109/ one life a platformer
https://scratch.mit.edu/projects/608962252/ quidditch
https://scratch.mit.edu/projects/628513249/ walk it off
https://scratch.mit.edu/projects/608945899/ harry potter duel
https://scratch.mit.edu/projects/611107819/ harry potter duel(3d version)
-
french and english speaker
qwerty116
Scratcher
100+ posts

Access custom blocks from all sprites (global procedures)

Support, this would really be nice to be added. I could use this in my project, and so also more people can use it too. I hope this will be implemented soon.

Hello, this is my signature!!! I can advertise and write in here. It appears under the horizontal line ^ under every one of my posts!


code
game
dont eat
dont sleep
repeat
eaismoney
Scratcher
3 posts

Access custom blocks from all sprites (global procedures)

I agree, basically sometimes there’s a long and hard block I define, but then I need to use it on another sprite so then I make like 5 variables to copy the block, it’s a stupid solution but yes this should exist
TroyMac1ure
Scratcher
8 posts

Access custom blocks from all sprites (global procedures)

Obviously support this, but more to the point:

TheLogFather wrote:

I posted this on another thread (on the same subject): https://scratch.mit.edu/discuss/post/1828250/

As I said there, the issue is not one of support, etc., but of how to implement it.

I've already reported the other topic to be closed as a duplicate, and I'm tempted to ask for this to be closed, and instead to have a topic which is asking for suggestions *how* to implement this (rather than just suggesting it).


First off, the fact that you can drag a custom block into another sprite and have it show there is misleading and creates confusion as to why the code won't run. If nothing else, custom blocks should not appear under other sprites and display an X or similar notification if you try to do so.

Secondly, There are multiple ways sharing blocks could be done. I would like to see a discussion on different ways it could be implemented and the issues that each method would have to overcome. There are numerous supporters for this feature, so let's figure out what it would take to make it happen. A couple of ideas:

1) People have already suggested an option to share with all sprites and seems like the most logical and preferred method. Some issues/solutions that have been pointed out already:
Issue: When exporting the shared block isn't located inside that sprite.
Solution: This could be solved by exporting linked blocks as well.
Issue: Duplicate naming issues.
Solution: Check for and don't allow duplicate names for shared blocks.

2) Have a dedicated area for shared blocks where they can be edited. They can be copied into individual sprites where they would display the original code but could edited from the main area and all other copies are updated. This would still create multiple copies but at least allow for quick changes to all blocks at once, not requiring deletion of the old and new copies of the changed ones.
Issue: Not allowing editing of the blocks in each sprite would likely cause confusing.
Issue: Still multiple copies in each block that give the appearance of reusing code. May create bad habits of code duplication & still takes up work space.
Issue: Requires a new section to be created specifically for shared blocks.

The second idea just popped into my head and I don't even like it, but for the sake of “no stupid ideas” I'll leave it here. I'd like to hear what the issues are with the first method that the team has so we can work as a community to overcome these.
TroyMac1ure
Scratcher
8 posts

Access custom blocks from all sprites (global procedures)

Nevermind. I started reading through this thread and the GitHub discussion and now I understand more of the issues behind it's implementation. Also, I see that the issue was closed a few years back, assuming that it's no longer being considered for inclusion. I still believe that it would be a very beneficial addition and feel that the discussions came to a realistic implementation into Scratch. There were downsides to placing global blocks into the scene, but I think the benefits would heavily out-weight the negatives (no access to sprite movements, etc) and even those could likely be overcome with clever programming.
-InTheProcess-
Scratcher
13 posts

Access custom blocks from all sprites (global procedures)

+1
KingCat-Studios
Scratcher
6 posts

Access custom blocks from all sprites (global procedures)

Tynker.com has it, but Tynker.com sucks, so +1!!

KingCat Studios Signature
Hello! I come from Tynker.com, and am trying to figure out the weird and wonderful world of scratch.
This means I know a lot of block coding (like, a lot).. just not specifically Scratch coding. Very, very similar though.
when green flag clicked
set [Program I used to use v] to [Tynker]
set [Program I'm messing with v] to [Scratch]
set [Program I'm learning now v] to [Unity]
say [Procrastinating Unity a bit, because it kinda.. won't run...]
alexluzzi
Scratcher
9 posts

Access custom blocks from all sprites (global procedures)

alexluzzi wrote:

insert quote here
when green flag clicked
change [evil apples v] by (-1)
add [thanks] to [list v]
move (stop game) steps
also use scratch collection for older scratch versions
Little_Mittle12345
Scratcher
100+ posts

Access custom blocks from all sprites (global procedures)

Heers a workaround. put a custom blocks on all sprites. But you have to change each custom block son sprite, SUPPOT

bfiwurbviubr vkjrnrgiorbgouebijernerjo
e, No Flash version detectededw, No Flash version detecteddw, No Flash version detectedda, No Flash version detected, No Flash version detectedd, No Flash version detectedwa, No Flash version detectedd, No Flash version detecteds, No Flash version detectedd, No Flash version detectedawd, No Flash version detectedwasw
move ()ewd steps
move (aw) steps
move (w) steps
move (dewd) steps
move () steps
move (wad) steps
move () steps
move () steps
move () steps
MysteriousCoder093
Scratcher
37 posts

Access custom blocks from all sprites (global procedures)

I have a project with I think 30+ sprites and I want to make a block for all of them.
PkmnQ
Scratcher
1000+ posts

Access custom blocks from all sprites (global procedures)

How would these work with local variables?


Actually, now that I think about it, having it change per sprite might lead to some interesting things.

This is an account that exists.

Here, have a useful link:
The Official List of Rejected Suggestions by Za-Chary

redspacecat
Scratcher
100+ posts

Access custom blocks from all sprites (global procedures)

Support!!!

Highlight and do Shift + Down Arrow to see the rest of my signature.
Click Here To Get A Scratch 4.0 Sneak Peak!


You should probably know that I don't actually use forbidden word, I just use this bookmarklet to upload to the assets server. I wonder who else knows what forbidden word is.













































You got TROLLED
Crispydogs101
Scratcher
1000+ posts

Access custom blocks from all sprites (global procedures)

redspacecat wrote:

Support!!!
Can you explain why?

Hey! Look at this DTA!
Hej! My username is @Crispydogs101. I like listening to music, playing games, and more!
Sarah and duck, Pete the cat, Pegboard nerds, Tokyo machine, FORZA FAN!! Be High contrast Blue Be rich
cookieclickerer33
Scratcher
1000+ posts

Access custom blocks from all sprites (global procedures)

alexluzzi wrote:

alexluzzi wrote:

insert quote here
when green flag clicked
change [evil apples v] by (-1)
add [thanks] to [list v]
move (stop game) steps
also use scratch collection for older scratch versions
Idk but I think that might be a browser extension, I’m not sure

⠀ ⠀ I beat Mario 64 yay! ⠀⠀ ⠀ ⠀ ⠀ ⠀ I love you ivy & may :3
⠀ ⠀ ⠀ ⠀ ⠀ ⠀⠀ ⠀ ⠀GEOMETRY DASH

⠀ ⠀ ⠀ ⠀ ⠀ ⠀ MecanX Disk 0 : Coming march 27th
HurricaneMitch1998M
Scratcher
1000+ posts

Access custom blocks from all sprites (global procedures)

You can just drag the block into other sprites

My studio

when green flag clicked
forever
stay up until 1am questioning my existence
end
eikh2
Scratcher
1000+ posts

Access custom blocks from all sprites (global procedures)

Support, less time consuming.

medians
Scratcher
1000+ posts

Access custom blocks from all sprites (global procedures)

eikh2 wrote:

Support, less time consuming.
Also would be nice for run without screen refresh and inputs

NEW: Medians bamboozled by 3.0 (version 3.0): https://scratch.mit.edu/projects/979822351/
hi875230163394: You're similar to valve in that you both hate a certain number…
Scratch 0.x, 1.x, 2.x, 3.x and LogoBlocks Archives
Bamboozlement: https://scratch.mit.edu/studios/33739789
Fun_Cupcake_i81: https://scratch.mit.edu/projects/850535211/
Years on internet: 15 (soon 16)
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 @AdamantOrb @MoongeistBeam @festively @Ampharos_ @ straightforwardness
i trolled redcat LOL





if you see this
{what method did you use::control hat
answer on profile ::motion
} ::operators
;
Spentine
Scratcher
1000+ posts

Access custom blocks from all sprites (global procedures)

Typically, to avoid duplicating scripts, I group all sprites that share the same script into a single sprite, and then use cloning to create “virtual” sprites.

pls dont comment “a” on my profile

also my connect 4 AI
Opilite
Scratcher
8 posts

Access custom blocks from all sprites (global procedures)

I support it too!
Like when I make blocks that I need every sprite to have it is VERY annoying to REMAKE this (idk why I can‘t copy-paste code from one sprite to another)

Hello, I code scratch, but my programs are too heavy for it


RIP

Powered by DjangoBB