If KeyHit(KEY_F2) Then SaveMap("map/test.som")
Function SaveMap:Int (file:Object)
Local f:Int
Local fx:Int, fy:Int, fl:Int
f = WriteFile(file)
For fx = 0 To 32
For fy = 0 To 32
WriteInt f, tilemap[fx,fy,0]
Next
Next
CloseFile f
End Function
why doesn't this work??
Function SaveMap:Int (file:Object)
Local f:Int
Local fx:Int, fy:Int, fl:Int
f = WriteFile(file)
For fx = 0 To 32
For fy = 0 To 32
WriteInt f, tilemap[fx,fy,0]
Next
Next
CloseFile f
End Function
why doesn't this work??