Discuss Scratch

123yeah_boi321
Scratcher
2 posts

Ability to turn functions into operators using a return.

Besides the “run without screen refresh” button, there could be a check-boxes for return. Once a block that has the return checked, the block has a new draggable besides the inputs, the return block, which would have the rounded input selector, and the block itself instead of being a block, it would be an operator-like block. Whenever the return block is used inside of the block, the block stops its script and has it output be whatever is in the return.
D-ScratchNinja
Scratcher
1000+ posts

Ability to turn functions into operators using a return.

So basically outputting something from custom blocks without requiring them to set a variable to something?
say (join (join[I'm ] (get distance from goal :: custom))[ units away from the goal.]) for (2) secs

define get distance from goal
code to check distance :: grey

D-ScratchNinja • he/him
- The following is my signature, which always shows up below my posts. -


New! Filter through my projects with my website.

Need to fix an issue? Check out this studio for solutions to some common problems!

OS: Windows 11 / Browser: Microsoft Edge / Time zone: PST/PDT

Powered by DjangoBB