View Single Post
  #1  
Old 08-22-2009, 08:32 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
tiles[] & updateboard

HTML Code:
function onCreated() {
  this.setshape(1, 64, 64);

  temp.tiles = {0x12D, 0xAA, 0xF, 0xAA,
                0xAA, 0x17D, 0xAA, 0xAA,
                0xAA, 0xAA,  0x8, 0xAA,
                0xAA, 0xAA, 0xAA, 0x17E};
  for (temp.i = 0; temp.i < 16; temp.i++) {
    tiles[this.x + temp.i 'DIV' 4, this.y + int(temp.i / 4)] = randomstring(temp.tiles); //Change the 'DIV' to a percent sign
  }
  updateboard(this.x, this.y, 4, 4);

  setTimer(50);
}
It should create a set of 16 tiles at the drop position, but it's not... Any ideas? thanks
Reply With Quote