...would be to use detached Say blocks in your script, as I do in the Cursor sprite of my Terrain Drawer project:
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:
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.
Offline
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...
Offline
Something else you can do is this:
repeat 0
{
say comment
}
Offline
Repeat 0 times. Cool idea!
Offline
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
My vote: snap-in block, multi-line comments, but whole comment displayed at once (no scrolling).
Offline
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:
Maybe you can click on the triangle to toggle the comment.
eyra
Offline
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
True... In that case I think that what you suggested would be a good idea.
eyra
Offline
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)
Offline
I like AngelEyra's comment, that is what I would go for!
Offline
Nice Idea!
Offline
This thread is two years old, and this problem has long since been solved with the commenting feature of Scratch 1.3
Closing.
Offline