View Single Post
  #3  
Old 08-27-2005, 05:51 AM
calani calani is offline
Scriptess
calani's Avatar
Join Date: Aug 2003
Location: asmgarden.gmap
Posts: 606
calani is on a distinguished road
Send a message via AIM to calani
To change tiles via a script, you can access the tile array directly using tiles[y][x]=integer; and then updating the tiles with updateboard x,y,width,height;

to get the tile ID's, go into the editor and select a tile (draw a box around one tile) then go up to the toolbar and click on the thing that looks like four cobbles. that will give you the ID of that tile (use that as the value in the tiles[][] array)

tiles[0][0]=0x00; will replace the top left tile with the left side of the two-tile grass tuft.
note, the level is 64x64, so you can do up to tiles[64][64]

you -must- to updateboard in order to have the new tile display on the level without having to re-enter the level (or at least move so the tile you changed is off-screen) before it will update.
__________________
Reply With Quote