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

#1 2007-07-18 15:32:30

_Dragon_MC_
Scratcher
Registered: 2007-07-15
Posts: 12

A way to clean up almost everybody's scripting...

...would be to use detached Say blocks in your script, as I do in the Cursor sprite of my Terrain Drawer project:

http://i33.photobucket.com/albums/d62/neomatt887spics/comment1.jpg

Of course, the stage can't "say" anything, so it doesn't come with Say blocks. So you do this: select one of your sprites and go to the Motion category. Drag a Say block over the Stage's icon in the lower right-hand box until the Stage icon has a gray line around it, and let go of the mouse. A picture:

http://i33.photobucket.com/albums/d62/neomatt887spics/comment2.jpg

There should be a Say block in your Stage's scripting! (Weird, huh?) As long as you don't attach the block to a full script, you should be fine.


Nine out of every two people don't understand fractions!

Offline

 

#2 2007-07-18 16:24:11

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: A way to clean up almost everybody's scripting...

Nice idea, though it does mean you can't use the "clean up script" feature without losing all your notes.

We could really use a "Rem" block...


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

#3 2007-07-18 19:46:08

toontownmiser
Scratcher
Registered: 2007-06-28
Posts: 18

Re: A way to clean up almost everybody's scripting...

Something else you can do is this:

repeat 0
{
say comment
}


Algebra I Lesson for Today:
(cat)+(dog)=(fish)
Given: c=1, a=1, t=2  d=1,o=1, g=2 and f=1, i=1, s=2, s=2
True or False?

Offline

 

#4 2007-07-19 11:15:26

_Dragon_MC_
Scratcher
Registered: 2007-07-15
Posts: 12

Re: A way to clean up almost everybody's scripting...

Repeat 0 times.  Cool idea!


Nine out of every two people don't understand fractions!

Offline

 

#5 2007-07-21 14:36:58

natalie
Scratch Team
Registered: 2007-03-07
Posts: 100+

Re: A way to clean up almost everybody's scripting...

Excellent workarounds! We want to add a comment block SOON!

Do you have suggestions for what the comment block should be shaped like? Should it snap in with the others (to prevent the cleanup issue that Mayhem mentioned)?

Does it need to scroll or have text wrap?
Any other visions/suggestions?

Offline

 

#6 2007-07-21 14:55:55

Canthiar
Scratcher
Registered: 2007-05-16
Posts: 100+

Re: A way to clean up almost everybody's scripting...

My vote would go for a multiline comment.

Offline

 

#7 2007-07-21 15:35:59

DrJim
Scratcher
Registered: 2007-05-26
Posts: 100+

Re: A way to clean up almost everybody's scripting...

My vote for appearance - snap in block, one identifying label or combination of punction marks (probably "Rem:") and a text window allowing multiline comments.

Offline

 

#8 2007-07-21 23:53:18

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: A way to clean up almost everybody's scripting...

My vote: snap-in block, multi-line comments, but whole comment displayed at once (no scrolling).

Offline

 

#9 2007-07-22 00:10:36

AngelEyra
Scratcher
Registered: 2007-07-19
Posts: 100+

Re: A way to clean up almost everybody's scripting...

Maybe it could be a small icon that you can attach to existing blocks... That way, it doesn't get in the way, and it stays with a specific block too.

For example:
C++'s
int someInt = 5; // We need this number for later

would end up like this:
http://theuncoded.org/wia/art/3

Maybe you can click on the triangle to toggle the comment.

eyra


AngelEyra's . MyScratchR . Blog
Think with portals
Sorry, Companion Cube... I didn't mean to...

Offline

 

#10 2007-07-22 00:14:17

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: A way to clean up almost everybody's scripting...

I like block comments better than comments attached to existing blocks---good commenting conventions usually describe what the following chunk of code does, or what things are now known about the state after a chunk of code. 

The only place I usually use "inline" comments is on variables---the idea of having a place you can click on a variable to view its comment block (specific to the variable, not to the particular set or change instance) would be good.

Offline

 

#11 2007-07-22 00:22:57

AngelEyra
Scratcher
Registered: 2007-07-19
Posts: 100+

Re: A way to clean up almost everybody's scripting...

True... In that case I think that what you suggested would be a good idea.

eyra


AngelEyra's . MyScratchR . Blog
Think with portals
Sorry, Companion Cube... I didn't mean to...

Offline

 

#12 2007-07-22 06:05:02

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: A way to clean up almost everybody's scripting...

I would go for:

A contracting colour (bright yellow?)
A snap in block that is only 1 line high, but that displays multiline text (no need to scroll) when moused-over (or at least, when right-clicked)


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

#13 2007-07-23 01:29:12

xyxzergames
Scratcher
Registered: 2007-04-17
Posts: 28

Re: A way to clean up almost everybody's scripting...

I like AngelEyra's comment, that is what I would go for!


Tip of the Hat UNIVERSE - A Website for our friends, TOTH Productions
http://www.ftcsm.co.nr/webmaster/UNIVERSE
Help Stop GLOBAL WARMING
http://www.stopglobalwarming.org

Offline

 

#14 2010-07-05 09:01:11

SparkleCleaning
New Scratcher
Registered: 2010-07-05
Posts: 1

Re: A way to clean up almost everybody's scripting...

Nice Idea!

Offline

 

#15 2010-07-05 09:03:35

meew0
Scratcher
Registered: 2010-02-22
Posts: 1000+

Re: A way to clean up almost everybody's scripting...

Please don't bump old topics. Scratch on!


http://i.imgur.com/mJV3j.pnghttp://i.imgur.com/HwWAX.pnghttp://i.imgur.com/sZ7Ui.pnghttp://i.imgur.com/0y6yh.pnghttp://i.imgur.com/nOC4l.png

Offline

 

#16 2010-07-05 09:38:48

illusionist
Retired Community Moderator
Registered: 2008-07-02
Posts: 1000+

Re: A way to clean up almost everybody's scripting...

This thread is two years old, and this problem has long since been solved with the commenting feature of Scratch 1.3

Closing.


http://i.imgur.com/8LX1NrV.png

Offline

 

Board footer