The Dink Network

Reply to Re: a depth que prob

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
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