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

#1 2010-12-11 17:33:28

Aexis
Scratcher
Registered: 2008-12-06
Posts: 17

Suggestions for Ease-of-Scripting.

Working on a dice simulator, a few ideas crossed my mind. The suggestions I present would not necessarily be helpful to everyone, but they have appeal from the programmer's point of view, in that they aim to make scripting more efficient and simple.

I'm almost certain some of these have probably been suggested before; pardon me in advance.

Additional rightclick option "duplicate (this only)"
This option would duplicate only the block that was rightclicked, rather than coming along with all the blocks below it. For lengthy scripts with repetitive sections, this would ease the extraction of specific lines needed elsewhere.

Drag-select boxes, draggable like blocks, with rightclick options "duplicate" and "delete"
Like the above, this would greatly help copying and modifying sections of a script without having to drag all of its lower contents with it. This would probably be harder to put into Scratch, however.

Show and Hide blocks for Lists
When you don't want your inventory displaying all the time, this would help. Variables have this, and since Lists are basically just a set of values rather than one, I don't see why it would be complex to do this.

Show and Hide as one block with dropdown
This is dubious, as adding it would necessarily mean either 1) messing up any and all projects with Variables (and Lists, if you add the previous suggestion), or 2) having some mechanism to change them all to the new block type. Nevertheless, it would be one less block type for Squeak to deal with.

Renamable Variables, Lists, and Broadcasts, with dynamic renaming
Totally pie-in-the-sky here, but by this I mean rightclicking a Variable/List/BC gives a "rename" option, and when one instance of the Variable/List/BC is renamed, they all are. (For some reason I originally thought Variables were already renamable, but checked when I started writing this and saw otherwise.) This really isn't necessary or useful and would, I think, be a pain to put into Scratch, but it sounded like a cool idea at the time, as did the previous suggestion.

I was also going to suggest multiple Timers, but I realized that could be emulated rather easily with a constant Set Variable script, and facepalmed.

Please discuss these.

Offline

 

#2 2010-12-11 18:29:54

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

Re: Suggestions for Ease-of-Scripting.

These all seem like really good ideas.  big_smile  Having to drag an entire stack of blocks out of a script to delete one block is a real pain. Renaming variables might not be necessary, but it would be nice. As for drop-down menus for show/hide, that might cause problems for people with older versions of Scratch, but I can't see any disadvantages otherwise.  hmm


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

 

#3 2010-12-12 09:10:02

Aexis
Scratcher
Registered: 2008-12-06
Posts: 17

Re: Suggestions for Ease-of-Scripting.

Thanks for the response! As I said, Show/Hide as one block and Renamable Vars/Lists/BCs were both sort of really out there, but that's how things get added to Scratch, isn't it?

Offline

 

#4 2010-12-12 10:03:07

mathematics
Scratcher
Registered: 2009-03-01
Posts: 1000+

Re: Suggestions for Ease-of-Scripting.

By the way, the Scratch Team has already planned about the "Show and Hide blocks for Lists".

Lightnin wrote:

Yep - this one seems important, and lots of Scratchers have asked for in the Suggestions forum! Definitely on the list for Scratch 2.0.  smile

(Source: add blocks to show and hide lists)

Offline

 

#5 2010-12-13 16:11:04

spongebobguy
Scratcher
Registered: 2010-04-19
Posts: 6

Re: Suggestions for Ease-of-Scripting.

mathematics wrote:

By the way, the Scratch Team has already planned about the "Show and Hide blocks for Lists".

Lightnin wrote:

Yep - this one seems important, and lots of Scratchers have asked for in the Suggestions forum! Definitely on the list for Scratch 2.0.  smile

(Source: add blocks to show and hide lists)

When will Scratch 2.0 come out?


sPOngEbObGUy

Offline

 

#6 2010-12-13 21:45:52

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

Re: Suggestions for Ease-of-Scripting.

spongebobguy wrote:

mathematics wrote:

By the way, the Scratch Team has already planned about the "Show and Hide blocks for Lists".

Lightnin wrote:

Yep - this one seems important, and lots of Scratchers have asked for in the Suggestions forum! Definitely on the list for Scratch 2.0.  smile

(Source: add blocks to show and hide lists)

When will Scratch 2.0 come out?

Sometime in 2011; the Scratch Team hasn't been much more specific than that. It's a major redesign (in a whole new programming language), so it might take a while.


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

 

Board footer