This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-01-19 23:49:00

AznKid66
Scratcher
Registered: 2011-08-10
Posts: 3

Pen Layers

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

 

#2 2013-01-20 10:32:47

lalala3
Scratcher
Registered: 2008-10-03
Posts: 100+

Re: Pen Layers

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)


http://img515.imageshack.us/img515/9374/signature2nt.png

Offline

 

#3 2013-01-25 16:32:46

lalala3
Scratcher
Registered: 2008-10-03
Posts: 100+

Re: Pen Layers

Bump. Does this idea have a magic charm or something on it that makes people's attentions gloss over topics about it? I swear, most such topics I have seen were just completely ignored. Like this one, for example.


http://img515.imageshack.us/img515/9374/signature2nt.png

Offline

 

#4 2013-01-27 09:52:07

lalala3
Scratcher
Registered: 2008-10-03
Posts: 100+

Re: Pen Layers

Another bump.


http://img515.imageshack.us/img515/9374/signature2nt.png

Offline

 

#5 2013-01-27 10:52:37

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: Pen Layers

support


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#6 2013-01-27 11:08:43

taddl
Scratcher
Registered: 2009-03-08
Posts: 100+

Re: Pen Layers

I support. This would be amazing.
Offtopic: I would like it if the Scratchteam would make an update eveery now and then, with little feature and not these big updates...


http://blocks.scratchr.org/API.php?action=projects&type=newest&return=image&user=taddl
http://blocks.scratchr.org/API.php?user=taddl&action=projects&type=newest&return=text&num=1

Offline

 

#7 2013-02-14 22:59:26

lalala3
Scratcher
Registered: 2008-10-03
Posts: 100+

Re: Pen Layers

Bump. Stupid jinx.


http://img515.imageshack.us/img515/9374/signature2nt.png

Offline

 

#8 2013-02-18 19:02:42

lalala3
Scratcher
Registered: 2008-10-03
Posts: 100+

Re: Pen Layers

*ahem* Bump.

This is annoying.


http://img515.imageshack.us/img515/9374/signature2nt.png

Offline

 

Board footer