Saving Game
Blitz3D Forums/Blitz3D Beginners Area/Saving Game
| ||
this is what i'm looking for: 1: Make a bi dimensional array field. Ex: Atk[6, 2] This doesn't work, how do I overcome this? 2: My save system is able to save and Load correctly. the problem is that I have more than 40 fields and I find difficult to make a simple code. Ex: While not Eof(SavedGameFile) SeekFile(SavedGameFile, 5000(SavedGameFile)*4-4) WriteInt(.... ...... ;->>(I have more than 100 Lines for this sh** =P) Wend how can Make this simple (if there is a way) 3: I wanted to ask if there's a different way to position the pointer, without using (5000*(SavedGameFile)*4-4) For instance: seekfile(Savedgamefile, 2) 4: I wanted to get a field without reading all the other 39. For instance: Readint%(savedgamefile, Atk[6]) *Sorry if it's hard to understand =P |
| ||
I think you should have certain save points (kind of annoying to the player, but it's probably the easiest thing to do) and each save point would have a number. Then saving would just be like:WriteLine(savepointnumber) WriteLines(stats) Of course, when you're loading, if you have 200 save points, that Select...Case...End Select statement could be looooonnggg... (Select savepointnumber) Just a suggestion... |