Organizing blocks in Scratch drives me crazy
Creating games with Scratch is very enjoyable. However, as your project gets bigger and bigger, the stacked blocks can drive you crazy.
When you right-click the mouse and click "clean up", all the blocks are arranged in a line, and the order is chaotic. This actually makes it harder to read.
To solve the problem of organizing blocks, tools like Scratch Addons have developed the Clean up+ function, which optimizes the way blocks are organized.
Based on this function, Gandi IDE team has developed a new frame function. With it, you can classify and organize the blocks of a sprite. It looks like this.
Let's take a look at how to use this function.
How to use frame and clean up in Gandi IDE
Create a frame
Right-click In the code editing area of Gandi IDE. In the menu, there is an option to create a frame. Click it and drag to create a frame in the code editing area. You can also use shortcut key A.
Put blocks into the frame
Then, you can drag any blocks into the frame.
When the top left corner of the block is within the frame, it is considered that the block has been placed in the frame.
Reposition and resize a frame
You can click on the name of the frame to select it and use the mouse to drag it to move it. After selecting it, you can resize the frame by dragging its four corners.
The batch selection function also works on frames.
Duplicate and delete a frame
A frame is just like a block. You can use the same operation as handling building blocks to duplicate or delete a frame.
Rename the frame
Double-click on the name of the frame to rename it. Click on the small circle on the left of the name to change the color of the frame.
Lock the frame
Click the lock icon, you can lock the frame. When a frame is locked, the frame and blocks inside it cannot be selected, added, modified, deleted, and duplicated.
Click the icon again. The frame will be unlocked.
Clean up
Clean up is divided into two scenarios.
The first is in the code editing area, which will organize all frames and blocks together. The way of organizing is similar to clean up in other tools. Blocks and frames will be arranged into neat multiple columns nearby.
The second scenario is to clean up the blocks within the frame, and the blocks will be arranged in neat multiple columns nearby, and the frame will also automatically adjust to the appropriate size.
Add a frame to the backpack
Frames can also be added to the cloud backpack, which you can use in other programs.
Notice
Frames can only be used in Gandi IDE. If opened in other tools, the project file with the created frame can be opened, but the created frame will be lost if saved in other tools and then imported into Gandi IDE.