Right now we have lots of stuff in the game, and while they all work, for the most part, nothing is really talking to one another. We had the buffs but they were just pick ups that disappeared, achievements that couldn't be achieved and stats that meant nothing right now. I stared working on the Game Instance (GI) to help tie all this together. I know that the GI is more then just a data holder, but for what we are doing it fits and works. I already talked about how I'm using save game data to store things, but now I need a way to load that data and have it accessible between levels.
The Game Instance of course! I created a custom GI and wrote the code to save and load stat data, achievement data, and other aspects we need for running the game. You can now equip a buff, and have that buff follow you through the game. Right now buffs are reset each run but in the future you'll be able to keep them between runs. With the current set up, it is able to load all buffs on the start of a level, apply those buff to the player and tracks health and mana so no more barely getting through a level to fully heal before the start of the next!
**This is the custom game instance with the save data and other variables we need for the runs.
author: Dewayne Hicks
posted on 21/9/23
Did you like this post? Tell us
Leave a comment
Log in with your itch.io account to leave a comment.