Tackling the Ability Shop Conundrum: A Game to Balance

 

 

Once the ability shop was up and running, everything seemed to be working smoothly. However, a glitch emerged when the save system and the ability shop started interacting. This unexpected interaction caused the shop's cost values to plummet to zero. Consequently, players could exploit this flaw to easily amass upgrades, effectively negating any challenge in the game.

 

Determined to address this issue, I delved deeper into the intricacies of the save system and its communication with the ability shop. Upon investigation, I discovered that a save file was immediately generated when starting a new game and was used to load the introduction scene. This presented a problem because the cost variables were initially assigned values specific to an actor that didn't exist in the main menu, resulting in the costs being stored as zero.

 

To rectify this, I implemented a solution within the save system. I added a check to identify the first initial save and, on the initial save of a new game, instructed the system to disregard the cost values until the player entered the first scene of the game. This adjustment ensured that the costs were saved at the appropriate time and retained their expected values.


Author: Justin Bethea

Posted on 10/27/2023








Comments

Popular posts from this blog

Resolving the Flying AI Bug: Boundary Fix in Level One Environment

Paying attention to Details

Revamping the player's attacks