Prowler Productions
  Dink Smallwood Forum
  depth que

Post New Topic  
profile | register | faq

Author Topic:   depth que
joshriot posted 08-01- 11:36 AM CT (US)   Click Here to See the Profile for joshriot   Click Here to Email joshriot  
how does depth que work?
Nexis posted 08-02- 05:00 AM CT (US)     Click Here to See the Profile for Nexis  Click Here to Email Nexis     
Ok, I may be wrong about how it works but this is how I think it works from my experience.

Normally whenever you place a sprite without setting a depth que it will use the y coordinate as the depth que. However, if you specify a depth que it will use that as the depth que instead (obviously).

Now when it comes time to draw the screen the dink engine takes the sprites with the lowest depth que and draws those first. So the sprites with the lowest depth ques apear below the other sprites.

Gerben posted 08-02- 05:41 AM CT (US)     Click Here to See the Profile for Gerben  Click Here to Email Gerben     
It is very useful for making objects appear to stand on top of tables etc.

First set the depth que to 500 then place it where you want it to be. It looks cool doesn't it?

The only trouble that in the real game Dink will appear behind the object as well. So it is important to find the exact right number for the depth que to make it work right.

Now chang the depth que to 400. Check to see if it is still there and change it to 300 etc. Untill it disappears.

Now say it disappears between 100 and 200. Try 150. If it is still there it must lie between 100 and 150. Now change the depth que with increments of 10... and then 1. Now you have found the correct depth que and it should all work fine.

Objects that are in the sky should be set to 1000, objects that lie flat on the floor should be set to -1 (Or just us the add to background option).

With depth que you can make really cool new graphics. Just say crap away most of a book case, untill you have just a couple of books left. Now place these in an empty cupboard and voila, a whole new sprite. Well, sort of anyway.

Have fun:-)

Post New Topic  Post Reply
Hop to:


Contact Us | Prowler Productions

Powered by: Ultimate Bulletin Board, Freeware Version 5.10a
Purchase our Licensed Version- which adds many more features!
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.