Discuss Scratch
- Discussion Forums
- » Suggestions
- » Global Functions(More blocks)
- junwoo4444
- Scratcher
15 posts
Global Functions(More blocks)
In the scratch editor, there is a more block(I'll call it a function since now.) section where you can make a function.
Functions are very useful when making big projects or projects where specific blocks of code are repeatedly appearing.
But when making a project where each sprite has the exact same function(s), it's really frustrating and time consuming when you have to
edit every single function of each sprite.
That's why I suggest to make a Global Function. This is a function that when created, can be used by every single sprite in the editor.
With Global Functions, you can edit one piece of code to change all the other pieces used in other sprites ASAP.
To create a Global Function, you just have to check the check-box under the “Run without screen refresh” check-box.
Finally, here's a project that would have taken less time and effort to make if there were Global Functions.
Look at the functions used at the sprites carefully
Functions are very useful when making big projects or projects where specific blocks of code are repeatedly appearing.
But when making a project where each sprite has the exact same function(s), it's really frustrating and time consuming when you have to
edit every single function of each sprite.
That's why I suggest to make a Global Function. This is a function that when created, can be used by every single sprite in the editor.
With Global Functions, you can edit one piece of code to change all the other pieces used in other sprites ASAP.
To create a Global Function, you just have to check the check-box under the “Run without screen refresh” check-box.
Finally, here's a project that would have taken less time and effort to make if there were Global Functions.
Look at the functions used at the sprites carefully
Last edited by junwoo4444 (Nov. 5, 2017 06:53:11)
- myed
- Scratcher
70 posts
Global Functions(More blocks)
Hmmm, I think this would be a cool feature, but kind of unnecessary because you can just duplicate the functions over sprites. In the scratch editor, there is a more block(I'll call it a function since now.) section where you can make a function.
Functions are very useful when making big projects or projects where specific blocks of code are repeatedly appearing.
But when making a project where each sprite has the exact same function(s), it's really frustrating and time consuming when you have to
edit every single function of each sprite.
That's why I suggest to make a Global Function. This is a function that when created, can be used by every single sprite in the editor.
With Global Functions, you can edit one piece of code to change all the other pieces used in other sprites ASAP.
To create a Global Function, you just have to check the check-box under the “Run without screen refresh” check-box.
Finally, here's a project that would have taken less time and effort to make if there were Global Functions.
Look at the functions used at the sprites carefully
my main form account is @myeducate
- junwoo4444
- Scratcher
15 posts
Global Functions(More blocks)
But it's frustrating when you have to edit the functions after you duplicated it.
- Charles12310
- Scratcher
1000+ posts
Global Functions(More blocks)
So, if the custom block is powered, all the sprites react to the block? Or if a custom block on a sprite is powered, the sprite where the def script is reacts to the block?
You can use broadcast blocks, but it doesn't look nice, and it doesn't look organized.
You can use broadcast blocks, but it doesn't look nice, and it doesn't look organized.
A few internet communication companies want to corrupt the internet by getting rid of net neutrality. Stop Them!
- muellly
- Scratcher
1000+ posts
Global Functions(More blocks)
Support. In a project I am making about 50ish sprites share the same two custom blocks. I decided to make a change to the block to lessen the amount of glitches and I had to go though 50ish sprites just to change a few lines a code in a custom block.
I would greatly appreciate if you were to check of this game I spent months that includes plot and bosses here https://scratch.mit.edu/projects/97452006/ ………………………………………Want a detailed review or idea?
I'm a major fan of Pokemon, Undertale and the Pija and Toast series.
I am doing a shiny scramble of pokemon Pearl. I'm 7 chapters in and on my way to the 2nd gym.
- Charles12310
- Scratcher
1000+ posts
Global Functions(More blocks)
duplicate thoThe first topic is closed. Please actually check before saying, “DUPLICATE! DUPLICATE!”
The second topic is closed because of an older topic, but that's the one that is closed. Keep this topic.
Last edited by Charles12310 (Nov. 5, 2017 19:16:30)
A few internet communication companies want to corrupt the internet by getting rid of net neutrality. Stop Them!
- walkcycle
- Scratcher
500+ posts
Global Functions(More blocks)
“DUPLICATE! DUPLICATE!”who wrote that?
The second topic is closed because of an older topic, but that's the one that is closed.lol, it's a circular duplicate closure!
like this question, those threads have important information
Keep this topic.DUPLICATE! from another dupe
github discussion
Last edited by walkcycle (Nov. 5, 2017 21:16:47)
- Discussion Forums
- » Suggestions
- » Global Functions(More blocks)