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

#51 2011-05-18 19:18:25

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

Re: If, if, else Block

nuckelavee wrote:

Pecola1 wrote:

Harakou wrote:


Not really. The type of block you're looking for would require some new coding to match the block "extension" properties of those in BYOB - possible, but somewhat more difficult than just making a new blockspec. Still, I think this would be worth the time.

me too

It's for Scratch 2.0, not for BYOB.

I know.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#52 2011-05-18 19:34:52

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: If, if, else Block

nuckelavee wrote:

Pecola1 wrote:

Harakou wrote:


Not really. The type of block you're looking for would require some new coding to match the block "extension" properties of those in BYOB - possible, but somewhat more difficult than just making a new blockspec. Still, I think this would be worth the time.

me too

It's for Scratch 2.0, not for BYOB.

We know. I was just pointing out that BYOB has a similar interface on some blocks to allow a variable number of arguments.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#53 2011-05-19 16:06:30

Rexpup
Scratcher
Registered: 2010-10-17
Posts: 100+

Re: If, if, else Block

Harakou wrote:

nuckelavee wrote:

Pecola1 wrote:


me too

It's for Scratch 2.0, not for BYOB.

We know. I was just pointing out that BYOB has a similar interface on some blocks to allow a variable number of arguments.

That's kind of off topic.


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

Offline

 

#54 2011-05-19 20:03:16

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: If, if, else Block

Rexpup wrote:

Harakou wrote:

nuckelavee wrote:


It's for Scratch 2.0, not for BYOB.

We know. I was just pointing out that BYOB has a similar interface on some blocks to allow a variable number of arguments.

That's kind of off topic.

I don't think so; I was discussing a difficulty that might be encountered while implementing this and giving an example of where it has been done before. What's off topic about that?


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#55 2011-05-19 20:29:49

Rexpup
Scratcher
Registered: 2010-10-17
Posts: 100+

Re: If, if, else Block

Harakou wrote:

Rexpup wrote:

Harakou wrote:


We know. I was just pointing out that BYOB has a similar interface on some blocks to allow a variable number of arguments.

That's kind of off topic.

I don't think so; I was discussing a difficulty that might be encountered while implementing this and giving an example of where it has been done before. What's off topic about that?

Well, this is a suggestion for Scratch 2.0, not just a byob block.  I want this to be usable everywhere.


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

Offline

 

#56 2011-05-19 22:16:30

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: If, if, else Block

Rexpup wrote:

Harakou wrote:

Rexpup wrote:


That's kind of off topic.

I don't think so; I was discussing a difficulty that might be encountered while implementing this and giving an example of where it has been done before. What's off topic about that?

Well, this is a suggestion for Scratch 2.0, not just a byob block.  I want this to be usable everywhere.

I'm aware of that, otherwise this topic wouldn't be in this forum. I'm only mentioning a similar style of block argument extension already implemented in BYOB, and that such a thing is quite doable. This block has a feature that allows you to choose as many "if" spaces for new blocks, does it not?


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#57 2011-05-20 00:32:00

Sidharth
Scratcher
Registered: 2007-12-14
Posts: 100+

Re: If, if, else Block

Instead lets have a SWITCH block.

___SWITCH (string)
|-CASE (string)   (Button to add another case)
|-- CODE TO BE EXECUTED
|-DEFAULT
|-- CODE TO BE EXECUTED
_END OF BLOCK


ALright that's GOTTA be the crudest drawing of a scratch block, but I hope you get what I mean.


http://www.danasoft.com/citysign.jpg

Offline

 

Board footer