Discuss Scratch

PenguinLover1123
Scratcher
1000+ posts

Best block idea! Organise code [CODE SECTIONS]

King of the page

AonymousGuy wrote:

There is technically a workaround (put all the scripts in custom blocks) but I still think it would be useful.

Support.
or:
define [comment]

define end

when green flag clicked
[Moves the sprite forever]::custom stack
point in direction (56)
repeat ((1)/(0))
move (10) steps
if on edge, bounce
end
end::custom stack

Last edited by PenguinLover1123 (July 21, 2021 18:04:24)

SuperMarioHome
Scratcher
100+ posts

Best block idea! Organise code [CODE SECTIONS]

AonymousGuy wrote:

There is technically a workaround (put all the scripts in custom blocks) but I still think it would be useful.

Support.

The custom block workaround works, but:

• It would take a lot of space to place the definitions.
• It would be hard to find everything.
ScolderCreations
Scratcher
1000+ posts

Best block idea! Organise code [CODE SECTIONS]

Bump
mumu245
Scratcher
1000+ posts

Best block idea! Organise code [CODE SECTIONS]

+1 bc I make large projects
Reev0102
Scratcher
1000+ posts

Best block idea! Organise code [CODE SECTIONS]

Bump
Reev0102
Scratcher
1000+ posts

Best block idea! Organise code [CODE SECTIONS]

Bring
Up
This
Topic
PPPX
Scratcher
9 posts

Best block idea! Organise code [CODE SECTIONS]

Bump
SuperMarioHome
Scratcher
100+ posts

Best block idea! Organise code [CODE SECTIONS]

How about these?

section [] ▶ :: grey stack

//would become

section [] ▼ {

} :: grey

//when the arrow was clicked.

But where would they go?
Blakedows2001
Scratcher
100+ posts

Best block idea! Organise code [CODE SECTIONS]

Support!!!
If code sections get added, I'll turn messy code into nice, clean, code.
Reev0102
Scratcher
1000+ posts

Best block idea! Organise code [CODE SECTIONS]

Bring
Up
This
Topic
PoIygon
Scratcher
1000+ posts

Best block idea! Organise code [CODE SECTIONS]

Isn’t this just custom blocks but there’s a dropdown? No support
Reev0102
Scratcher
1000+ posts

Best block idea! Organise code [CODE SECTIONS]

PoIygon wrote:

Isn’t this just custom blocks but there’s a dropdown? No support
When you use custom blocks and are scrolling through to find a section, it looks like the custom blocks are part of the code.
GAMS2
Scratcher
1000+ posts

Best block idea! Organise code [CODE SECTIONS]

I'm not sure if I said it before, but I support, I'm making a large scale project, its hard to organize.
BanMeOS
Scratcher
500+ posts

Best block idea! Organise code [CODE SECTIONS]

ScolderCreations wrote:

Bump
PGBFLITE6373
Scratcher
1000+ posts

Best block idea! Organise code [CODE SECTIONS]

I support, this could be used to sort everything.

Imagine you are making a big project, and need to label scripts. you try to use the comment feature, but it doesn't help you because you can barely see the line. So with this, you not only can sort things easier, you can make sub-sections, something that would confuse you with the comment. This could even be use to shorten code size with the dropdown.
GoldBackthewebAlext
Scratcher
100+ posts

Best block idea! Organise code [CODE SECTIONS]

Full support! The way you made it is awesome!
alswns711
Scratcher
14 posts

Best block idea! Organise code [CODE SECTIONS]

code (4) blocks
alswns711
Scratcher
14 posts

Best block idea! Organise code [CODE SECTIONS]

()

end
alswns711
Scratcher
14 posts

Best block idea! Organise code [CODE SECTIONS]

()scratch

end
TheBus_2
Scratcher
53 posts

Best block idea! Organise code [CODE SECTIONS]

theonlygusti wrote:

AonymousGuy wrote:

Those aren't really comments…
I know, I will re-title it if you can think of a name, it's just that this is the one I came up with.
how about, Section dividers?

Powered by DjangoBB