World vs map coordinates
- morbydvisns
- Posts: 1889
- Joined: Sun Jan 30, 2005 12:51 am
World vs map coordinates
Is there any possible way we can get a more... uniform conversion between map and world coordinates? The current way, there are 256 tiles, and 3,000,000 map coordinates in each the x and y axis. That is 11718.75 world points per tile. This makes it difficult for precise world/map coordinate conversion in scripting, because the parser does not do decimals.
Last edited by morbydvisns on Tue Sep 10, 2013 8:52 pm, edited 1 time in total.
- morbydvisns
- Posts: 1889
- Joined: Sun Jan 30, 2005 12:51 am
- morbydvisns
- Posts: 1889
- Joined: Sun Jan 30, 2005 12:51 am
does the script function sysMapToWorld help?
i.e.
the world size is basically the position in cm (or tenths of a cm, whatever.. it depends how tiny people are.. ). The tile size/landscape scale is an arbitrary number that affects how big each tile is. Hence the relative scale of map coordinates - i.e. tile coord - and the world coordinates are variable.
i.e.
Code: Select all
$worldX = sysMapToWorld( $mapX )
- morbydvisns
- Posts: 1889
- Joined: Sun Jan 30, 2005 12:51 am