0 Members and 2 Guests are viewing this topic.
{Y*WIDTH_OF_MAP + X + START_OF_MAP_DATA}->{Y*WIDTH_OF_MAP + X-1 + START_OF_MAP_DATA}
DrawMap(mapPtr, tilePics)GetTile(mapPtr, x, y) .x and y are actual screen coords. Function just divides each by 8 to get the tile that contains the point specified.SetTile(mapPtr, row, col, value)
Lbl GT{r2/8*12+(r1/8)+GDB1}Return
Lbl ST{r2/8*12+(r1/8)+GDB1}->r3Return
Lbl STr3->{r2*12+r1+GDB1}Return
Also I think he meant actually erasing the tile from the screen. Parser you can do that by drawing a Rect( and a RectI( at the coordinates of the tile.
getKey(4)?Y--End
If getKey(4)Y-1->YEnd
But is fasterCode: [Select]getKey(4)?Y--Endthan?Code: [Select]If getKey(4)Y-1->YEnd