The Dink Network

Reply to Re: Sprite overlapping sprite

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:
 
 
May 6th 2004, 04:51 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
First, here is how depth typically works: a sprite with a higher Y coordinate will appear above a sprite with a lower Y coordinate. There are some exceptions (background sprites, depth dots, etc) but that's the general rule.

Now, depth dot allows your sprite to pretend it has a different Y coordinate, even though it doesn't have to be physically at that spot. So if I place a sprite at Y coordinate 200, and give it a depth dot of 100, then it will appear behind all sprites with a Y coordinate (or depth dor) of greater than 100 and above all sprites with a Y coordinate (or depth dot) below 100.