The Daily Click ::. Forums ::. Klik Coding Help ::. Layers
 

Post Reply  Post Oekaki 
 

Posted By Message

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
8th May, 2011 at 12:40:00 -

Hello,

Is it possible to make an object in layer 2 appear behind an object in layer 1?

Or are layer 1 objects always behind layer 2 objects no matter what.

Thanks in advance!

 
n/a

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
8th May, 2011 at 14:45:04 -

Objects in layer 2 are always above objects in level 1 as you said (with the special exception of Windows UI such as buttons, text boxes, and some strings that act weird). You can move objects between layers if you need to change draw order. You may also want to look into using the layer object to order objects differently.

What are you trying to achieve?

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Dean James Reynolds



Registered
  16/05/2010
Points
  219

VIP Member
8th May, 2011 at 22:46:25 -

Well as far as I know, I do understand I'm not very experienced. but in my actual year of experience of MMF2 I've used layer in just about all my games. and I know that an object on layer 1 collisions won't work with any object on a different layer (that's hint #1), And layer 2 objects are in-front of layers below (same goes too all layers) are always behind. I'm not sure why you would like to achieve this, But assuming you just want a straight answer. There may be extensions that such allow that concept, I don't mess too much with layers though.

Goodluck!

 
n/a

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
9th May, 2011 at 13:13:25 -

Yeah I didn't think it was possible.

Long story why I wanted to do it.

... I needed to have an object in layer 1 behind another object in layer 1. But I would like that first object to be in front of layer 2 cause layer 2 had all my lighting and shadows and I don't want any of that on this particular object. it is hard to explain. i have solved it with another method, but the layers method would have been easier if possible.

Thanks for your help.



 
n/a

vetmora120



Registered
  07/01/2010
Points
  273
10th May, 2011 at 05:12:32 -

So I'm curious, Chris. How did you manage to get around it?

I've got a similar issue where I have a shadows layer and I wanted to have the shadows in front of certain objects in the layer above it. It's only a minor thing but I would like to know how you achieved it.

Thanks, Vet.

 
n/a

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
10th May, 2011 at 12:52:19 -

I know there is an action to send objects to different layers.

And in case you need it for collision you can have a mask following it on a layer for collisions.

 
Code me a sausage!
   

Post Reply



 



Advertisement

Worth A Click