Currently there are 3 options for levels in a game :
1) Different layouts
2) Arrays
3) Built in Save/Load
But I have to create a save file not too complex and not too simple. I have different objects on playfield and 3, 4 global variables. Is there any way I can save all to a text file like this?
2 // number objects
var1 // global var 1
var2 // global val 2
obj1x // ***
obj1y
obj2x
obj2y[/code:5i6cqax7]
*** = Construct reads the first line (2) and after reading the global variables it does a Repeat loop with (2 * 2). In fact, the repeat loop should work like this :
[code:5i6cqax7]read line 1 -> put in variable 1
NEXT LINE
read line 2 -> put in variable 2
spawn object at var1 var2
NEXT LINE - REPEAT[/code:5i6cqax7]