I think I've already tried that.
Heres the code that places the tiles:
It places the tiles in the array when a condition is met. Note the locations of the tiles tprXloc etc.
The function below draws to the screen the tiles in the array.
I hope the code I posted helps. It's a tetris clone sort of.
ANymore help appreciated :)
Heres the code that places the tiles:
Function set_tiles() topLframe = frame1 topRframe = frame2 bottomLframe = frame3 bottomRframe = frame4 If tilesY > GraphicsHeight()-116-64 tilesX = start_position setTile = True EndIf For Local b:brick = EachIn bricklist If setTile = True gamearea[tprXloc,tprYloc] = topRframe gamearea[tplXloc,tplYloc] = topLframe gamearea[blXloc,blYloc] = bottomLframe gamearea[brXloc,brYloc] = bottomRframe brick.newbrick() setTile = False ListRemove bricklist,(b) EndIf Next End Function
It places the tiles in the array when a condition is met. Note the locations of the tiles tprXloc etc.
The function below draws to the screen the tiles in the array.
Function draw_gamearea() For Local x:Int = 0 To arrX - 1 For Local y:Int = 0 To arrY -1 DrawImage tiles,gameareaX+x*32,gameareaY+y*32,gamearea[x,y] Next Next End Function
I hope the code I posted helps. It's a tetris clone sort of.
ANymore help appreciated :)