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

#1 2010-05-15 10:04:28

HollowAizen
Scratcher
Registered: 2009-04-11
Posts: 10

Trouble with the layers

I am making a project called "DRIVE" which is a shooter- My problem is that my sprites all can move up and down and have a possibility of overlapping- currently i have no way of layering my sprites and the overlap of a sprite that is higher than another sprite could ruin the 3d illusion

PLEASE HELP


[http://scratch.mit.edu/projects/HollowAizen/1038394]
I dunno how to put images on here *sigh*

Offline

 

#2 2010-05-15 10:07:53

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Trouble with the layers

Just use the Layer blocks. There's "Go to Front," and "Go back x Layers." You can use them to control the layering of your sprites.

Hope that helped!  smile

Offline

 

#3 2010-05-15 12:22:42

illusionist
Retired Community Moderator
Registered: 2008-07-02
Posts: 1000+

Re: Trouble with the layers

Yes, as Coolstuff said, the looks blocks (at the very bottom of the list) can be used to control layering.

http://i43.tinypic.com/4gjhwo.png

In the picture above, I have added variables to monitor the layer of a sprite.

I hope this helps!  smile


http://i.imgur.com/8LX1NrV.png

Offline

 

#4 2010-05-16 16:33:10

HollowAizen
Scratcher
Registered: 2009-04-11
Posts: 10

Re: Trouble with the layers

illusionist wrote:

Yes, as Coolstuff said, the looks blocks (at the very bottom of the list) can be used to control layering.

http://i43.tinypic.com/4gjhwo.png

In the picture above, I have added variables to monitor the layer of a sprite.

I hope this helps!  smile

I know about those- but I'm trying to combine them with "forever if", so I cannot fathom a way to keep the layers in check without resseting the layers every time- which would look bad.


[http://scratch.mit.edu/projects/HollowAizen/1038394]
I dunno how to put images on here *sigh*

Offline

 

#5 2010-05-16 16:51:17

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Trouble with the layers

HollowAizen wrote:

illusionist wrote:

Yes, as Coolstuff said, the looks blocks (at the very bottom of the list) can be used to control layering.

http://i43.tinypic.com/4gjhwo.png

In the picture above, I have added variables to monitor the layer of a sprite.

I hope this helps!  smile

I know about those- but I'm trying to combine them with "forever if", so I cannot fathom a way to keep the layers in check without resseting the layers every time- which would look bad.

You mean something like a "go to layer x?"

Offline

 

#6 2010-05-20 20:47:45

HollowAizen
Scratcher
Registered: 2009-04-11
Posts: 10

Re: Trouble with the layers

coolstuff wrote:

HollowAizen wrote:

illusionist wrote:

Yes, as Coolstuff said, the looks blocks (at the very bottom of the list) can be used to control layering.

http://i43.tinypic.com/4gjhwo.png

In the picture above, I have added variables to monitor the layer of a sprite.

I hope this helps!  smile

I know about those- but I'm trying to combine them with "forever if", so I cannot fathom a way to keep the layers in check without resseting the layers every time- which would look bad.

You mean something like a "go to layer x?"

Yeah


[http://scratch.mit.edu/projects/HollowAizen/1038394]
I dunno how to put images on here *sigh*

Offline

 

#7 2010-05-20 21:41:13

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Trouble with the layers

HollowAizen wrote:

coolstuff wrote:

HollowAizen wrote:


I know about those- but I'm trying to combine them with "forever if", so I cannot fathom a way to keep the layers in check without resseting the layers every time- which would look bad.

You mean something like a "go to layer x?"

Yeah

You can always "go to front" and then "go back x layers."
It could get a *little* choppy, but it's the best you can do.

Offline

 

Board footer