map editor help.

BlitzMax Forums/BlitzMax Beginners Area/map editor help.

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Amon,

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