
08-01-2001, 05:23 PM
|
|
Retired Oldbie
|
 |
Join Date: Mar 2001
Posts: 3,084
|
|
|
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. |
__________________
|
|
|
|