So for some reason I'm using Scratch to build a game with the flip-book-esque "illusion of movement" (build a new frame, stamp stuff onto the frame, show the frame, loop), which I am mimicking with Scratch's pen clear and pen stamp tools.
Note: The reason I'm doing this is because the game is going to have tons of object clones created on the fly, and I'm far too lazy to simply make a moving sprite for each clone.
Anyways, the problem with using the clear and stamp blocks is that in order to build a new frame, you need to clear (in other words prematurely "hide") the old frame. Since stamping is too slow, there is period where everything is cleared, causing everything to blink.
As such, I have formulated the following suggestion:
Pen Layers and Layer Switch functionality
So the first part of the suggestion is to have multiple pen layers, minimum 2.
The second part of the suggestion is being able to manipulate multiple layers independently, so Clear, Pen Down, and Stamp will have to be changed to include a parameter for the layer number. Alternatively, there could just be a Change Layer to ( ) block that affects all Pen blocks. Furthermore, being able to draw on hidden layers is integral to solving this problem.
The third part of the suggestion is that there be a way to switch layers, for example from showing Layer 1 and hiding Layer 2 all within a single thread of execution. Currently, clearing the pen board and drawing on it is too slow as outlined in the introduction, but I don't know how fast hiding the pen board and showing a new one is.
And that's the end of my selfish request.
P.S. If anyone has a solution that can be done in the most recent version of Scratch, I'd be interested in hearing it.
Offline
1. I support.
2. What you are talking about resembles a concept called "double buffering". Just a little side note.
3. The most recent version of Scratch is 1.4, and in the standard 1.4 you cannot clone sprites, so no, I see no solution.
Last edited by lalala3 (2013-01-27 09:52:33)
Offline