Amon,
It's pretty simple.
It's pretty simple.
'*This is where you are defining the size of the map array Global mapx:Int = 16 Global mapy:Int = 12 '*Now the array is create with the size of 16x12 tiles. '*REMEMBER: This starts from ZERO NOT ONE Global map:Int[mapx,mapy] '* Later you try and change the value inside the map array. '* What your not understanding is that you are trying to change tile (16,12) '* If you count from 0 it would actualy be (15,11) map[mapx,mapy] = tileframe 'So in that case, the following would work map[mapx-1,mapy-1] = tileframe