Discuss Scratch
- jokebookservice1
-
1000+ posts
Global Define Blocks (New idea)
Please, just say if you support, semi-support, no-support, or don't understand how it works
- Jonathan50
-
1000+ posts
Global Define Blocks (New idea)
Support.
EDIT: Reminder; the workaround exists, but it seems inconvenient, and uses lists + broadcastsHow would you work around global blocks in this?
Last edited by Jonathan50 (Aug. 4, 2016 00:37:23)
- jokebookservice1
-
1000+ posts
Global Define Blocks (New idea)
broadcast and wait + you would need to combine the scripts together because you will have race conditions there anyway so why not predefine which goes first… Support.EDIT: Reminder; the workaround exists, but it seems inconvenient, and uses lists + broadcastsHow would you work around global blocks in this?
- jokebookservice1
-
1000+ posts
Global Define Blocks (New idea)
Bump.
But from now on, please don't just state your support, or lack thereof. Instead please add to the discussion.
But from now on, please don't just state your support, or lack thereof. Instead please add to the discussion.
- Lythium
-
1000+ posts
Global Define Blocks (New idea)
SUPPORT HAHAHAHAHAHA
In reality though, I don't quite understand the suggestion. Could you explain it to me?
In reality though, I don't quite understand the suggestion. Could you explain it to me?
- jokebookservice1
-
1000+ posts
Global Define Blocks (New idea)
So currently, every custom block created can only be invoked from the sprite that it is in. Sometimes you have projects where you need to have a sprite call another to do something. Broadcasting basically. Maybe for a cloud list engine. You need the broadcast to take arguments. SUPPORT HAHAHAHAHAHA
In reality though, I don't quite understand the suggestion. Could you explain it to me?
So if the Cat sprite has
then (with different wording)
(It would say “Tell cat:” but yeah..)
Unlike the problems with other global broadcasts, here, only one sprite executes the custom block, but others can call another block to run it (with arguments)
Last edited by jokebookservice1 (Nov. 14, 2016 18:29:52)
- TheUltimatum
-
1000+ posts
Global Define Blocks (New idea)
Support I like your idea as per making this run the block in the scope of the sprite it is defined in. Though it could simply run in its own little sandbox like a clone.
- dvargasews
-
500+ posts
Global Define Blocks (New idea)
Or maybe there could be global and local custom blocks, like local and global variables and lists, soGood Idea! Support!
Maybe in other sprites than the one defines, they could be prefixed with the sprite name, for example if “Sprite1” had
and this option was checked, other sprites would do (and see in their more blocks pallet)
to call it.
could only be used by Sprite1, but
could be accessed by any sprite in the project.
- braxbroscratcher
-
1000+ posts
Global Define Blocks (New idea)
I'm thinking; this is the only efficient method for variable broadcasts. Otherwise you'd need to be looking for random broadcasts all the time.