Adventure games with inventory + game saves?
gyroscope
I am here.Member, Sous Chef, PRO Posts: 6,598
Hi, I know I'm trying to "run before I can walk", i.e I've only been using GS for a couple of hours, but I'm interested to know, for a future project, whether it's possible to a) create an adventure game to include a workable inventory and b) to include saves in-game, so that if iPhone/iPad was switched off, then game on again, the user could carry on were they left off.
If either or both of these are possible, any pointers would be appreciated thanks - i.e things to look out for while I'm learning.
:-)
If either or both of these are possible, any pointers would be appreciated thanks - i.e things to look out for while I'm learning.
:-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Comments
Actually, having an inventory is very doable. Basically you will create a boolean attribute for each item. Then you'll have a rule that says
when game.pickaxeunlocked is true
----------change self.alpha to 1 (makes the pick axe button visible)
etc.... (there's a few more steps, but that's the idea)
Saving-
Having the game save exactly where you have left on may be tough. You could put save behaviors for things like the score, time, player location (X and Y), etc. in a timer so that it is being saved on a regular bases but this may hurt your game's FPS. A compromise would be to have checkpoints at various points in the level. So in that since it is very doable in GS
Good luck and welcome to the community!
Good luck!
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Good news that inventories are doable, as well as checkpoint saves. I wonder where this info is stored? i.e for a desktop mac it's probably be in a .plist file or a .prefs file, I think I'm correct in saying? I guess the iPhone + iPad would save in a seperate file that's similar?
Thanks to you, as well as quantumsheep, for your info.
:-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Has anyone successfully applied a Save system to their game, the user able to go to a saved level for instance, when running the app again?
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
I haven't personally had a saver that saves what level your on, but my games save your highest score and all your settings!
I'm not exactly sure where it writes the information, but I believe it works basically the same way as other apps and everything thats saved has to go to a certain file... Because when your updating your game EVERYTHING goes away except for your save files...
Hope this answers your question!
Good Luck!
:-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
----------------------------------------
(A pointless insult, I know; but promoted by this guy's insults and ranting in another thread).
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
I guess I'm getting old