View Single Post
  #2  
Old 08-01-2001, 05:23 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Basically, you can get a tile's id by doing this:
board[x+y*64]
In which x and y are the x and y positions of the tile in the level
However if you want to know the ID of a tile to replace it with you use the following calculation:
tilex+tiley*16
tilex and tiley are displayed under he location from which you normally select tiles in the editor if you hold your mouse over a tile.
updateboard then needs to be done after any tile changes to make it visible, although the changes can only be seen by the player who is "running" the script.
__________________

Reply With Quote