Hi all,
I am looking for a clean, fast way to select individual tiles from a bitmap. I made a bitmap that has all tiles I need. Tiles are 32x32. After digging around, I came up with the following. Is this a good way to do it? I notice that upon run the whole bitmap flashes rather quickly and then the screen clears and my desired tile is displayed. I\'ll be honest here, I don\'t understand why the SYNC stuff has to be in here. I got it from others who have posted similiar.
It works, but something about this code bugs me. Could someone who knows 2D tile-work take a look?
SYNC ON
SYNC RATE 0
SYNC
LOAD BITMAP \"Tile_Set.bmp\",0
SYNC
GET IMAGE 1,96,96,128,128
CLS
PASTE IMAGE 1,0,0,0
SYNC
WAIT KEY