Discuss Scratch

qucchia
Scratcher
100+ posts

Code Sheets for organising scripts

Script Sheets: Introduction
Similar to having different sheets in an Excel or a Google Spreadsheet, my suggestion consists of having an option to create several “sheets” of code for every sprite. Every sheet would have different scripts, and you would be able to move scripts to different sheets.
If you have a better name to suggest, please tell me! “Sheet” is a temporary name for this suggestion.

Explanation
Since I'm not very good at explaining my ideas with words, I tried to make an image to represent my idea, it didn't end up very clear though:


by the way, does anyone know how I can make these images smaller? It would be of great help!

As you can see, on the very bottom of the image there is a bar with two buttons: “Main Scripts” and “Custom Blocks”. These are the sheets in the sprite. Every sheet has some different code. Let's say I clicked the “Custom Blocks” button. Something like this would happen:


As you can see, in this sheet there are some completely different scripts, even though it's in the same sprite. This is the main idea of the “sheets” feature: to organise scripts and make them easier to use.

I forgot to make an "Add sheet" button, but you can imagine it's there. The Add sheet would create a new sheet and would ask for a name. (similar to when you create a variable). If you right-clicked a sheet name, you would be able to delete or rename it, and by dragging a sheet you could re-order sheets and move them to other sprites and even your backpack!

An extra notice: custom blocks would be usable from all sheets, not only the sheet they were defined in.


Pros
  • Organising scripts in sprites is really easy
  • Time taken for finding a certain script can be reduced drastically
  • If a Scratcher is using custom blocks created by someone else (for example a 3D engine) they can have the custom blocks in a seperate sheet so they don't edit them by mistake.
  • Backpacking certain scripts from a sprite but not all of them is easier if you simply backpack the sheet!


Cons
  • Could be confusing for new Scratchers (solution: make it an option in the settings)
  • Could be abused to make certain scripts really hard to find (solution: add an option to see all scripts at once)

Conclusion
In summary, I believe my suggestion would be a good change, since it would especially help advanced coders to code their projects more efficiently and quickly.

If you have any more suggestions for this idea, or maybe more ideas for Pros and Cons, please tell me!

Looking forward to seeing your replies!
~qucchia
Nambaseking01
Scratcher
1000+ posts

Code Sheets for organising scripts

I was sure there were duplicates for this but apparently not.

But anyway, this is a great way to organize your scripts and since I'm a dude that is extremely strict about organized coding this would be a wonderful feature.
WindOctahedron
Scratcher
1000+ posts

Code Sheets for organising scripts

Nambaseking01 wrote:

I was sure there were duplicates for this but apparently not.
There is one.
Paddle2See
Scratch Team
1000+ posts

Code Sheets for organising scripts

WindOctahedron wrote:

Nambaseking01 wrote:

I was sure there were duplicates for this but apparently not.
There is one.
Thanks for the link! It does look like this is a duplicate topic so I'll close it to keep the conversation all in one place.

Please use the existing topic in the link above.

Powered by DjangoBB