The Dink Network

Reply to Re: Easier way to create Dink mod map?

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 17th 2015, 06:27 PM
peasantm.gif
shevek
Peasant They/Them Netherlands
Never be afraid to ask, but don't demand an answer 
My editor does it the right way, and when you've done it once, it's pretty easy to repeat, I think.

Anyway, without looking at your code:

Sprite placement is based on screen pixels, not world pixels. The coordinate of the sprite is where the "depth dot" (defined in dink.ini) is placed; the image is positioned around it. 20 is added to the X coordinate, because there is a 20 pixel border on the screen.

For the Z coordinate, you need the "depth que" value. This is either 0, which means it is identical to the Y coordinate, or an absolute number. Lower values are placed below higher values. Negative values are allowed, but 0 is not (because it would make it equal to the Y coordinate of the sprite). Background sprites are always behind all others, and their que value is ignored.