having a mind black, how does the following result with xpos and ypos coming up as 196 for first set?
should be like 3000... what obvious thing am i missing?
if file exist(savefilename$) then delete file savefilename$
open to write savefilenumber,savefilename$
For x=0 to 9
For y = 0 to 9
write byte savefilenumber, tiles(x,y).base
if x > 5
xpos = x - 5
xpos = 5000+(xpos*500)
endif
if x < 5
xpos = 5000-(2500 - (x*500))
endif
if y > 5
ypos = y - 5
ypos = 5000+(ypos*500)
endif
if y < 5
ypos = 5000-(2500-(x*500))
endif
`xpos=20
zpos = 0
write byte savefilenumber, xpos
write byte savefilenumber, ypos
write byte savefilenumber, zpos
Next y
NEXT x