Thread: onwall and such
View Single Post
  #30  
Old 05-18-2006, 07:35 AM
Luigi203 Luigi203 is offline
Hamma Time
Luigi203's Avatar
Join Date: Mar 2003
Location: North East PA
Posts: 285
Luigi203 is on a distinguished road
Send a message via AIM to Luigi203
tiles[x,y] just gives you the tile index at x and y. Tilesets are broken up into 16 x 16 pixel 'tiles', and each tile has a unique index. This is just used to read and write these indecies. Experiment with it,

function OnMouseDown() {
player.chat = tiles[mousex,mousey];
}

to check tile indecies, and you can write them like so

function onMouseDown() {
tiles[mousex,mousey] = #;
}

Hope this helps..
__________________


CAUTION