Discuss Scratch

subzerostig
Scratcher
12 posts

Better "Create your own Block"

After using byob for a bit I am thrilled to see that 2.0 will have the ability to create blocks. I only have one concern - you cannot return values. While it's possible to accept an input it's not possible to return one. I think that having the ability to return a boolean/string/number value would be very important. If you wanted a block to tell the time it would involve either have it set a variable, or have it interact with the sprite directly. Having it return the time would allow for greate flexibilty
BoltBait
Scratcher
1000+ posts

Better "Create your own Block"

The Scratch Team has already stated that they will have this capability in a future version. They just want to iron out any problems now with a simpler version of custom blocks.

Click to play:
BigBug667
Scratcher
8 posts

Better "Create your own Block"

This block maker is a bunch of blocks combined together. So yes it is possible
Mcsugarface
Scratcher
18 posts

Better "Create your own Block"

I was about to post the same thing. I can think of so many uses by using return values.

I'll put something here someday. For now, have a kitten:
BoltBait
Scratcher
1000+ posts

Better "Create your own Block"

Mcsugarface
I was about to post the same thing. I can think of so many uses by using return values.
Yeah, me too.

I was really hoping they'd include that functionality in the 2.0 release.

Click to play:
technoguyx
Scratcher
500+ posts

Better "Create your own Block"

I was hoping for it too I guess we'll just have to wait for it in a future minor release.

Scratcher since 2008.
CraftedCart
Scratcher
46 posts

Better "Create your own Block"

You can kind of do return functions by doing it like this:


Custom block code…
Set variable to 5
Broadcast end block

When I receive end block
Do stuff with variable

Scratchblocks don't work

Last edited by CraftedCart (March 17, 2013 17:01:50)


CraftedCart - Creator of Scratch Games, GlassOS, and More!
See my projects at scratch.mit.edu/users/CraftedCart/

Powered by DjangoBB