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

#1 2010-03-19 16:44:18

infinitum3d
Scratcher
Registered: 2009-05-10
Posts: 100+

Putting COMMENTS into scripts?

I hoped this would be in the FAQ's but I couldn't find out how anywhere.

I see in the Scrolling_Done_Right project tha archmage comments using red blocks.

Where do these red 'comments' blocks come from?

Thanks!

Offline

 

#2 2010-03-19 17:00:13

infinitum3d
Scratcher
Registered: 2009-05-10
Posts: 100+

Re: Putting COMMENTS into scripts?

I found out that the 'comments' blocks were from a now-obsolete version of Scratch.

Offline

 

#3 2010-03-19 17:26:30

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

Re: Putting COMMENTS into scripts?

If you right-click in the scripts area there should be an option to add a comment, but it isn't like the old red blocks.

Offline

 

#4 2010-03-19 18:01:56

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: Putting COMMENTS into scripts?

Adding on to BWOG's sayings, you can "attach" a comment to a block by dragging it to that block. Just to make things a bit more like the old ones. You can minimize and and the first text will make the title, which I use for little guides.


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#5 2010-03-19 18:45:29

MaxtheWeirdo
Scratcher
Registered: 2010-03-18
Posts: 500+

Re: Putting COMMENTS into scripts?

This solution isn't very technical, but you could just put an ask or say block in the middle of the code, with no starting block attached to it.


My website. Hall Crawler My Awesome OS
It's just marketing, guys! Nothing sinister!

Offline

 

#6 2010-03-19 19:19:35

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: Putting COMMENTS into scripts?

MaxtheWeirdo wrote:

This solution isn't very technical, but you could just put an ask or say block in the middle of the code, with no starting block attached to it.

Maybe, but it will still run. You could do:
[blocks]
<repeat( 0 )>
<say[ this is a comment ]>
<end>
[/blocks]


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#7 2010-03-19 21:02:33

Larry828
Scratcher
Registered: 2007-05-30
Posts: 100+

Re: Putting COMMENTS into scripts?

Greatdane wrote:

Adding on to BWOG's sayings, you can "attach" a comment to a block by dragging it to that block. Just to make things a bit more like the old ones. You can minimize and and the first text will make the title, which I use for little guides.

This is the best way to do it, as BWOG and Greatdane have indicated.

Right-clicking in the scripts area and adding a comment that way makes it look very different from the other Scratch blocks.  And dragging it over to the very block you want to comment on creates a little yellow line that shows the linkage. 

Experiment with that "comment-dragging" because you can link a comment to a whole section of a script, like a "repeat" block with its contents.

Offline

 

Board footer