Kobaltic he is using tier 2 and you are using tier 1
Her is my code for loading and saving my map file in my platformer.
State is simply wath the function should do.
file io is the file name to save or load.
Both are strings "text here".
Map_File( "load" , "mymap.lvl" )
Function Map_File( state as string , file_io as string )
If GetFileExists( file_io )=0 and state = "load" then ExitFunction
If state = "load"
OpenToRead ( 1 , file_io )
Endif
If state = "save"
OpenToWrite ( 1, file_io, 0 )
Endif
For x = 0 to MapWidth
For y = 0 to MapHeight
If state = "load"
Map [ x,y ] = ReadInteger ( 1 )
Map_Objects [ x,y ] = ReadInteger ( 1 )
Endif
If state = "save"
WriteInteger ( 1 , Map [ x,y ] )
WriteInteger ( 1 , Map_Objects [ x,y ])
Endif
Next y
Next x
CloseFile ( 1 )
If state = "save" then message("File saved!")
EndFunction
Android 2.3 Gingerbread , ZTE Skate , 480x800 , 800 mhz cpu , Samsung Galaxy Y , 240x320 , 832 mhz cpu
Android 4.0 Sandwich , Dmtech 3g 9738B , 1024x768 , 9.7 inches , cortex A8 1.2 cpu , 1 gb ram.