Approaches for setting xrel and yrel values
Posted: 18 Sep 2006 13:30
I have recently tried to set xrel and yrel values for a new ship. However, using this wiki page guide...
http://wiki.ttdpatch.net/tiki-index.php ... oordinates
...did not help. I set xrel and yrel to negative half sizes of the vehicle as described, but it is still far off it's desired position. The ship is quite small and is obviously located too far from tile edge if it has to be in it's centre and thus "jumps" while turning, runs on land etc.
I tried to use grf creator helper in newgrf window, but because it shows only the sprite itself and not it's location on a background tile (and determining this is hard on sea, because there are no tile boundaries), I found it quite time-consuming.
Am I missing something? Is there a convenient way to determine these coordinates for a custom grf vehicle if you do not have a background (rails, road...) to check it against it?
http://wiki.ttdpatch.net/tiki-index.php ... oordinates
...did not help. I set xrel and yrel to negative half sizes of the vehicle as described, but it is still far off it's desired position. The ship is quite small and is obviously located too far from tile edge if it has to be in it's centre and thus "jumps" while turning, runs on land etc.
I tried to use grf creator helper in newgrf window, but because it shows only the sprite itself and not it's location on a background tile (and determining this is hard on sea, because there are no tile boundaries), I found it quite time-consuming.
Am I missing something? Is there a convenient way to determine these coordinates for a custom grf vehicle if you do not have a background (rails, road...) to check it against it?