The Dink Network

Sprite overlapping sprite

May 6th 2004, 03:08 PM
duckdie.gif
I'm putting down sprites but when I put down 2 overlapping, the second sprites goes behind the first.
Any suggestions?
May 6th 2004, 03:17 PM
wizardb.gif
merlin
Peasant He/Him
 
Adjust the depth dot.
May 6th 2004, 04:43 PM
duckdie.gif
But what does the depth dot actually do?
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.
May 6th 2004, 05:50 PM
girl.gif
joshriot
Peasant They/Them United States
keep it real 
dont listen to that nonsense. a higher number means it will be more on top, a lower number means it will be more behind. change til it works.
May 7th 2004, 01:46 AM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
That isn't nonsense... When I want a sprite to overlap another sprite, and it doesn't by itself (due to y-coords), I check the y-coord of the 'below'-sprite, add 1, and make that the depth-dot of the 'upper'-sprite.