This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#176 2011-06-22 20:47:56

chicken778
New Scratcher
Registered: 2011-04-03
Posts: 3

Re: Scratch 2.0 Progress Report: Create your own block

what-the wrote:

Cool. It looks like the broadcast and wait block.

Set variable to X
Broadcast "Jump" and wait



When Jump recieved
Change Y by 10
Wait 0.1
Change Y by -10

Problem with Broadcast and Wait is that parameters and return values are passed using global variables.  If several different sprites try to use the same signal, it can be quite a mess.

Offline

 

#177 2011-06-22 20:57:05

chicken778
New Scratcher
Registered: 2011-04-03
Posts: 3

Re: Scratch 2.0 Progress Report: Create your own block

johnm wrote:

For Scratch 2.0, we're planning to support user-defined command blocks, but not custom reporter blocks. But you can do a surprising amount with only command blocks, including recursion and even functions (by using a global variable for the return value).

The problem I can see with using global variable: what will happen if several sprites try to call the same "function" at the same time?  I don't know enough about Scratch to be able to figure out what would happen, but I can see that leading to all sorts of mysterious hard to find problems.

Offline

 

#178 2011-06-22 21:42:54

chicken778
New Scratcher
Registered: 2011-04-03
Posts: 3

Re: Scratch 2.0 Progress Report: Create your own block

johnm wrote:

Fullmoon: The evaluator currently depends on the fact that all of the built in reporter blocks are atomic operations. They don't contain loops or "wait" operations, and they can't cause a thread switch. Thus, all argument expressions can be recursively evaluated inline; the evaluator does not need to save and restore state during argument evaluation because no thread switches can occur. In contrast with built in reporters, a user-defined reporter may contain an infinite loop or a block that does a "wait", thus forcing a thread switch. The mere possibility of a thread switch would force the Scratch argument evaluator to save and restore state for every expression it evaluates, just in case that expression causes a thread switch.

Of course, it might be possible to optimize the evaluator to avoid the expensive case when it can (although even detecting the fast cases would add some overhead). But my bigger objection to user-defined reporters is precisely that they can introduce a thread switch in any block that takes an argument. Although most users don't need to worry about when thread switches occur, Scratch currently allows thread switches only on "wait" blocks and at the end of loops. This design prevents many of the concurrency errors that can occur in other languages, and it works extremely well. User-defined reporters introduce potential thread switches at unexpected places, thus making concurrency errors more likely.

Concurrency errors are extremely difficult to diagnose and debug, even for the most experienced programmers. (I've sometimes spent days or even weeks looking for a single concurrency error.)

The combination of decreased performance and the potential to introduce concurrency errors makes me very reluctant to introduce user-defined reporters in the first release of Scratch 2.0. I don't rule them out for a future release, but I'd like to see how the Scratch community responds to the ability to define command blocks first. One step at a time.

-- John

I am quite new to Scratch, but quite interested in this discussion.  What about a compromise, where custom reporters could be built only from already existing reporters, with "input" variables, kind of like an expression with variables in basic algebra.  It would be much weaker that allowing any commands in custom reporters, but as far as I understand, it would eliminate the problems you mention above.

Offline

 

#179 2011-06-24 12:42:03

mcguire
Scratcher
Registered: 2008-07-08
Posts: 3

Re: Scratch 2.0 Progress Report: Create your own block

Will Scratch 2.0 work with Picoboards and WeDo kits? - I have both.

Offline

 

#180 2011-06-24 13:30:16

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Scratch 2.0 Progress Report: Create your own block

mcguire wrote:

Will Scratch 2.0 work with Picoboards and WeDo kits? - I have both.

Yes.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#181 2011-06-29 21:49:22

mmww
Scratcher
Registered: 2010-01-14
Posts: 500+

Re: Scratch 2.0 Progress Report: Create your own block

Awesome!!!!!!!!!!!!


http://i.imgur.com/AWFFO.pnghttp://www.weebly.com/uploads/1/0/1/4/10146167/4363061_orig.png Save the cheese!
I am http://blocks.scratchr.org/API.php?action=onlineStatus&user=mmww

Offline

 

#182 2011-06-30 18:49:03

PyrosTheStickman
Scratcher
Registered: 2009-09-19
Posts: 53

Re: Scratch 2.0 Progress Report: Create your own block

Yup.Some things and glitches hit the ceiling in scratch very easily,and using MESH is hard.BYOB also has a "share this sprite"feature,allowing people to send sprites to another MESH user.Incorporate that too  neutral

[unrelated image and text removed by moderator]

Last edited by Paddle2See (2011-07-08 20:34:06)

Offline

 

#183 2011-07-01 11:18:02

LolaRose1892
Scratcher
Registered: 2010-12-10
Posts: 98

Re: Scratch 2.0 Progress Report: Create your own block

YES! That would be awesome!


http://i1082.photobucket.com/albums/j377/DIYmit/LolaRose1892.png

Offline

 

#184 2011-07-02 21:41:18

pokemongardevoir
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: Scratch 2.0 Progress Report: Create your own block

This Will Be Epicz


http://i48.tinypic.com/n50dt.gifhttp://tiny.cc/oj6plwhttp://tiny.cc/creepforum
My website has been approved by the Scratch Team.  (^_^)

Offline

 

#185 2011-07-08 19:03:29

emmyrox912
Scratcher
Registered: 2010-11-10
Posts: 9

Re: Scratch 2.0 Progress Report: Create your own block

http://scratch.mit.edu/forums/viewtopic.php?id=59483#req_message
hi!!

Offline

 

#186 2011-07-23 12:28:55

Limeyguy
Scratcher
Registered: 2011-03-20
Posts: 2

Re: Scratch 2.0 Progress Report: Create your own block

Hopefully there can be some real java in it.

Code:

System.in.println("Hopefully!")

Offline

 

#187 2011-08-08 16:24:38

christian9
Scratcher
Registered: 2009-02-13
Posts: 2

Re: Scratch 2.0 Progress Report: Create your own block

http://scratch.mit.edu/forums/viewtopic.php?id=59483#req_messagehttp://scratch.mit.edu/forums/viewtopic.php?id=59483#req_messagehthttp://scratch.mit.edu/forums/viewtopic.php?id=59483#req_messagetp://scratch.mit.edu/forums/viewtopic.php?id=59483#req_message

Offline

 

#188 2011-08-08 19:09:51

Stormheartstudios
Scratcher
Registered: 2011-05-11
Posts: 2

Re: Scratch 2.0 Progress Report: Create your own block

why not make a block for switchin a costume while it plays the sound i know horrible idea  tongue

Offline

 

#189 2011-08-09 17:22:20

dudestude
Scratcher
Registered: 2010-05-19
Posts: 26

Re: Scratch 2.0 Progress Report: Create your own block

Cool!!!!! Just like BYOB!!!!!!!


http://img195.imageshack.us/img195/7605/merrychristmasdudestude.png Hi!!!  big_smile

Offline

 

#190 2011-08-23 17:14:05

phineasandferbfan9
Scratcher
Registered: 2011-04-16
Posts: 72

Re: Scratch 2.0 Progress Report: Create your own block

<when green flag clicked><forever if>board and want to make your own scratch block?<wait( several )months><go to[ scratch 2.0 ]


I Have the first "One Pound Fish" Music Video on Scratch! (i couldnt make a clickable link) http://scratch.mit.edu/projects/phineasandferbfan9/3093467

Offline

 

#191 2011-08-27 04:24:41

legoman70
Scratcher
Registered: 2010-12-11
Posts: 28

Re: Scratch 2.0 Progress Report: Create your own block

cool I love BYOB (I actuly only downloaded it today but it's AWESOME 8D


http://i1224.photobucket.com/albums/ee374/ZombieGamer63/Minecraft/ZombieMinecraftAchievement.png

Offline

 

#192 2011-08-28 16:29:02

lu9
Scratcher
Registered: 2009-05-19
Posts: 56

Re: Scratch 2.0 Progress Report: Create your own block

well, i think about adding colour, and combo boxes input into customized blocks.
And in this new version the blocks we made will be always in the "variables" tab?
And variables haves lists,blocks. So i think it should be now called "custom"
or something like that.  smile
But it would be awesome!
I Hope Jens doesn't get Jealous with this lol


Talk about Scratch,Super Mario Bros X, Super Mario War and Lego Stunt Rally in my forum

Offline

 

#193 2011-08-29 03:36:51

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Scratch 2.0 Progress Report: Create your own block

lu9 wrote:

I Hope Jens doesn't get Jealous with this lol

Jens is wholeheartedly supporting this!

Offline

 

#194 2011-08-29 03:38:59

JJROCKER
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: Scratch 2.0 Progress Report: Create your own block

scimonster wrote:

lu9 wrote:

I Hope Jens doesn't get Jealous with this lol

Jens is wholeheartedly supporting this!

big_smile


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://img255.imageshack.us/img255/3491/signature1y.jpg&amp;link2=http://img577.imageshack.us/img577/5272/signature1sx.jpg&amp;link3=http://img4.imageshack.us/img4/8514/signature1et.jpg&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://img163.imageshack.us/img163/4640/jjrockerfinal.jpg

Offline

 

#195 2011-08-29 04:40:06

Informageek
Scratcher
Registered: 2010-10-17
Posts: 30

Re: Scratch 2.0 Progress Report: Create your own block

I would like to have a "Save" button beacause I don'treally know how to use variables   wink 
lol
___________________________________________________________________________________
I will soon add an image LOL.

Offline

 

#196 2011-08-29 07:40:24

NeilWest
Scratcher
Registered: 2010-01-06
Posts: 1000+

Re: Scratch 2.0 Progress Report: Create your own block

Heres a block example

<real time = [] hours>

<real time = [] minutes>

<real time = [] seconds>

<real time seconds>

<real time minutes>

<real time hours>

All of these are based on the real time (or the time on your PC clock). And can be used for projects involving clocks, digital time and calenders! I hope it gets used in Scratch 2.0!

Offline

 

#197 2011-08-29 09:33:49

XUDI
Scratcher
Registered: 2010-12-07
Posts: 62

Re: Scratch 2.0 Progress Report: Create your own block

This'll  be awesome! You could make perfect platforming really simple! Could you make it so you can export custom blocks, so you can get them in other projects? It could be like, Forever: PERFECT PLATFORMING.

Offline

 

#198 2011-08-29 21:15:55

ImMaximum
Scratcher
Registered: 2011-08-14
Posts: 6

Re: Scratch 2.0 Progress Report: Create your own block

My my my, i cannnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnot wait for Scratch 2.0.
All i have to say is, you HAVE to include custom blocks.
Im not sure if it is too similar, but the ability to just program it or use the blocks would be good with the option to save a piece of program as a custom block.
Cant wait for 2.0!

Offline

 

#199 2011-09-05 10:49:05

ZachAttack
Scratcher
Registered: 2007-11-12
Posts: 5

Re: Scratch 2.0 Progress Report: Create your own block

I think that blocks that you build you can choose to be compatable with other sprites like  with variables right now.

Offline

 

#200 2011-09-14 16:06:36

thisisntme
Scratcher
Registered: 2011-04-15
Posts: 63

Re: Scratch 2.0 Progress Report: Create your own block

this is gonna be awesome!!!!!!!!!!!!!


http://i.imgur.com/ngU2P.gif

Offline

 

Board footer