I'm using two map. One for drawing foreground of level, the second for object to collect (ex gold pieces)
I'm able to read the map so i can draw my foreground.
Then, able too to place my gold pieces using the second map.
But while taking a gold piece, i want to write the map to delete the piece at this place, but it doesn't work
![Neutral :|](./images/smilies/icon_neutral.gif)
Maybe i'm not using the good method?
My code reading and placing the gold piece tile (working)
Code: Select all
VDP_setTileMap(BPLAN, TILE_ATTR(0,0,0,0)+(level1objets_map[i+j*40]+1), k, l);
Code: Select all
level1objets_map[i+j*40]=0;
VDP_setTileMap(BPLAN, TILE_ATTR(0,0,0,0)+(level1objets_map[i+j*40]+1), k, l);