Saving notifications! :)
Posted: Mon Nov 01, 2010 2:26 pm
So guys, look at this!
That saving system tells you things like:
- Successfully saved
- Successfully loaded
- File not found
It works by one simple variable called Saved. While saving, it writes into file that Saved = 1;
And in player's draw actor code there is Saved = 0;
And when you load game, if you've written file name right and game saved with the name you wrote,
it loads vars and then Saved = 1. But if you've written wrong or there is no file with the name you
wrote, Saved will be 0. And according to that, the game can tell you, is it possible to load game.
Simple but working logic, isn't it?
That saving system tells you things like:
- Successfully saved
- Successfully loaded
- File not found
It works by one simple variable called Saved. While saving, it writes into file that Saved = 1;
And in player's draw actor code there is Saved = 0;
And when you load game, if you've written file name right and game saved with the name you wrote,
it loads vars and then Saved = 1. But if you've written wrong or there is no file with the name you
wrote, Saved will be 0. And according to that, the game can tell you, is it possible to load game.
Simple but working logic, isn't it?