AMOS TOME Series IV Manual Index | 51 |
=X Tile(px)
=Y Tile(py)
Translates pixel co-ordinates px & py into tile co-ordinates, based on the
current Map View area and tile size. You can use these functions to
find out a player's position in the map, although normally you would
use the =Map Pos X(px) and =Map Pos Y(py) commands.
=Map Pos X(px)
=Map Pos Y(py)
As with =X Tile(px) and =Y Tile(py), these commands convert pixel
co-ordinates into tile co-ordinates. However, =Map Pos X/Y converts
the co-ordinates as if they were pixel offsets from the top left of
the map, so that you can use the resultant tile co-ordinates with
commands such as Map Plot and =Tile Val. e.g:
Rem MX is current pixel map position, Rem X is players bob position in screen. TX=Map Pos X(MX+X) Rem MY & Y are the same for the Y co-ord. TY=Map Pos Y(MY+Y) Rem now get the tile value at that location TV=Tile Val(TX,TY,0) Rem player is standing on tile value TV
List Tile
Displays the tile bank on the current screen, within the current TOME window
(set with Map View). Dead useful when you need to know a tile number.
This command automatically puts a space of 1 pixel between each tile.
If you don't want this space, simply reduce the tile size by 1, e.g
Tile Size 15,15 : List Tile
You can use this command in place of the old Tile Paster program, simply reduce the tile size by1, List Tile and save the resultant screen to disk using the Save IFF command List Tile uses the Map View area though, so make sure Map View is set to a large enough area to display the whole set of tiles.