Hello all.
I've been reading up on how to save games in C2. It seems that game saves can be done for iOS and Android games but only if they're web apps. If I'm wrong, please let me know, but this tutorial by Ashley seems to indicate that.
goo.gl/crtEBT
I have a suggestion. If you like it, please voice your support. If not, please share with us why.
I think it would be awesome if a new object was added to C2, an object called "Save Array". This Save Array would be like a regular array with one very unique feature; information you change within it is permanently changed.
Having a unique array type instead of allowing regular arrays to be altered would mean there would be no accidental corruption of the game itself. The array would also need to be locked in size once you've dimensioned it, i.e. once the array has been given an actual size nothing in the game would be able to alter its size. It would most likely also need to have a limit on the amount of data that can be held in each array location.
Actions for the array could include...
Detect Save - Detects if there's a saved game, useful so that you can ensure that any "Load Game" menu options you provide are hidden until there's actually a saved game.
Write to Save Array - Self-explanitory.
Read from Save Array - Again, self-explanitory.
Clear Save Array - Reset the Save Array. Once cleared, the Detect Save would register no saved data.
Anyone else think this is good? Ashley, could it be done? If it could be done, would it be something you'd consider doing?