Discuss Scratch
- Discussion Forums
- » Suggestions
- » Allow sprite code to be divided into pages
- Greg8128
- Scratcher
500+ posts
Allow sprite code to be divided into pages
Some sprites need to contain a lot of code. However, because all the code is on one giant “canvas”, it inevitably becomes very messy, and trying to view on most computers will cause Scratch to freeze.
My solution is to allow the code in sprites to be organized into “pages”, each of which can contain one or more scripts. Pages can be named, code can be moved between pages, and pages in the same sprite share their custom blocks.
Need to find a custom block? No more scrolling through an endless sea of blocks. Just find the page that it's in.
Need to edit the code? The computer doesn't need to render all 5000 blocks in the sprite's code, only the 200 or so in the page that you're working with. Now you don't have to wait for lag spikes to pass.
My solution is to allow the code in sprites to be organized into “pages”, each of which can contain one or more scripts. Pages can be named, code can be moved between pages, and pages in the same sprite share their custom blocks.
Need to find a custom block? No more scrolling through an endless sea of blocks. Just find the page that it's in.
Need to edit the code? The computer doesn't need to render all 5000 blocks in the sprite's code, only the 200 or so in the page that you're working with. Now you don't have to wait for lag spikes to pass.
- wasdcoceoe
- Scratcher
100+ posts
Allow sprite code to be divided into pages
support, it's good to tidy the code up
When construction and destruction loses balance, greed fills the gap. (This quote is bad)
set canvas to [sprite v]:pen
GUPTAPraise the true lord
- SpinningCube
- Scratcher
100+ posts
Allow sprite code to be divided into pages
It sounds like it would be effective for all reasons listed.
- Chiroyce
- Scratcher
1000+ posts
Allow sprite code to be divided into pages
Underrated.
Full support -
(1) Makes it more clean, and easy to use
(2) Similar to actual Programming
(3) You can keep custom-block definitions in one page/sheet, which makes it easier to edit code and the definition.
This should definitely be implemented.
Duped? Oh.
Full support -
(1) Makes it more clean, and easy to use
(2) Similar to actual Programming
(3) You can keep custom-block definitions in one page/sheet, which makes it easier to edit code and the definition.
This should definitely be implemented.
Duped? Oh.
Last edited by Chiroyce (March 1, 2021 05:25:19)
April Fools' topics:
— New Buildings in Scratch's headquarters
— Give every Scratcher an M1 MacBook Air
— Scratch should let users edit other Scratchers' projects
— Make a statue for Jeffalo
— Scratch Tech Tips™
— Make a Chiroyce statue emoji
<img src=“x” onerror=“alert('XSS vulnerability discovered')”>
this is a test sentence
- Discussion Forums
- » Suggestions
- » Allow sprite code to be divided into pages