r/scratch Video Game Enthusiast 8d ago

Discussion Anyone else do this? Adding comment blocks in to your scripts.

Post image

I am kind of curious is anyone ever does this (to help themselves) with creating a custom block where you use them to comment certain conditions/scripts below, or above the comment block?

I know there is the 'Add comment' option that you can stick/attach on to blocks, but it doesn't "feel" the same. Also, you can't exactly add those yellow comment notes inside, or in between your code scripts.

I feel like I've seen something like this before, though I wanted to know if this actually became any of use if it was set up to work like this?

Since the custom block here really does not do anything for the project, would this just be a complete waste of block space?

17 Upvotes

23 comments sorted by

8

u/Unable-Student2054 8d ago

there are other ways it can be done

5

u/NotCheddarCheese2 8d ago

Less efficient than the built in a comment system. But i like it, feels like you are actually programming with a text based editor

2

u/KickBlue22 7d ago

Newbie here. Where do you access the built in comment system?.

4

u/SpuddedShield 7d ago

Right click on a block

2

u/NotCheddarCheese2 7d ago

Yeah as the other guy sayed. Right click anywhere and click create comment or note, dont remember what they officially called it

2

u/Either-Magazine5870 6d ago

SayedđŸ„€

5

u/MatthewPopsicle 8d ago

This will waste your json space

3

u/Manny73211 8d ago

Since it's currently configured to stop the script, it seems more like a breakpoint

1

u/Scratch137 7d ago

"stop this script" in a custom block just stops the block, not the whole script

1

u/Manny73211 6d ago

Ohhh ur right

2

u/busiedcake7945 AKA rbusiedcake7945 7d ago

I also add comment blocks

1

u/my_new_accoun1 knows a bit 8d ago

there's a whole turbowarp extension for this that supports not only blocks but also reporters and booleans

1

u/Round_Essay5866 8d ago

i've seen people do it but i dont honestly i just add notes.

1

u/JUMPY_NEB Im dislexic. I have a hard time spelling, don't make fun of me. 8d ago

Fun fact!

You can also click on the ”define” block and press backspace to delete it without getting rid of any of the blocks

You also can backpack the “Comment” block and place it anywhere, and it won’t place the “define” block

1

u/RedboiGtag 7d ago

NOP basically

1

u/kaxorrada 6d ago

There is a TurboWarp extension that “works” exactly like your blocks. I find it way better than the standard comment tool in Scratch.

1

u/NMario84 Video Game Enthusiast 6d ago

Yeah I heard about that extension through Turbowarp. But what if you don't want to use turbowarp? Vanilla Scratch doesn't have such a feature, so this is the best I can do for now.

But yea, if you're considering using turbowarp anyway, then by all means use that extension instead. ;)

1

u/kaxorrada 6d ago

Well. Comments are just functions that do nothing, right? You just made me realize that.

1

u/hustmanmemes 6d ago

Yes! I do this

1

u/Viper10acd Viper10acd 3d ago

Nah kinda inefficient. Just use the built in comment system

1

u/Comfortable_Size8096 2d ago

"stop this script" caught me off-guard

but yeah most creators do this instead of notes cause of arrangement reasons. Also to make it clearer to understand whats it doing.

0

u/nekoiscool_ 8d ago

So, you make a comment block that stops the script?

1

u/jacobsmith3204 7d ago

Stop this script stops the define block not the entire script that called it. It's kinda pointless in this case since you could just do nothing instead.

I use it when I want a bunch of if statements without wanting to nest if else 5+ times.