The Dink Network

a depth que prob

June 22nd 2009, 06:47 AM
custom_skull.gif
Skull
Peasant He/Him Finland bloop
A Disembodied Sod 
I've got this depth que problem. When I try to put letters on a table I need to rise their depth que. Then they will appear on the table, but Dink will walk behind them. So I tried to use -10 as depth que for the table and 0 for the letters. Dink doesn't alk behind the letters anymore, but he walks on the table. How can I fix this. Dink should stay on the letters, but still off the table.

Thanks, Skull
June 22nd 2009, 06:50 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
Just use 0 for the table. Look up the Y-coordinate for the table and set the letters to a depth que 1 higher then the table.

So if the table is at Y = 140, you set the depth que of the letters to 141. That should do the trick.
June 22nd 2009, 07:09 AM
custom_skull.gif
Skull
Peasant He/Him Finland bloop
A Disembodied Sod 
I tried it. Dink still appeared under the letterss.
June 22nd 2009, 07:13 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
Now I don't get the problem anymore:

You want Dink to be above and below the table at the same time?
June 22nd 2009, 07:13 AM
custom_skull.gif
Skull
Peasant He/Him Finland bloop
A Disembodied Sod 
Never mind, it worked. I had for some reason put "278" for the letters. Thanks.
June 22nd 2009, 02:24 PM
knightgl.gif
zeddexx
Peasant He/Him New Zealand
I'm pretty sure I'm worth atleast SIX goats... 
ive allways wondered how to do that!! for me i made the table a type 0 and the things on it type 1. but dink can walk on the table!!
June 22nd 2009, 02:55 PM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
Here is a citation from my tutorial:

"Normally the drawing order of objects in a screen is determined by the Y coordinate of the objects. The object with the higher value for the Y coordinate will be drawn on top. This means that the further down on the screen an object is, the higher on top it is drawn. This is great, but sometimes we want a little more control, for this you can use the depth que. The depth que basically overwrites the Y coordinate when determining the drawing order. So imagine two objects, one with an Y coordinate of 150 and one with an Y coordinate of 100 but a depth que of 160. Then the second object will be drawn on top, in spite of the fact that it is higher up the screen. When the depth que is set to 0 the drawing order will be determined by the Y coordinates."

So, in essence if you want something to be on top of something else you have to give it either a higer value for the y coordinate (= placing it lower on the screen) or giving it a higher depth que. If you make the depth que to high it will be on top of everything, which is usually not ideal.

Hope that makes it completely clear