Fixing The Issue Of Players Saved Information Not Loading Between Levels Anymore
A bug arose where the players saved information of the bean counts was no longer loading when traveling between levels. This is an issue as a major part of the game play loop is being able to gather different types of beans to unlock more levels and boss rooms. This is also inconvenient to the player as it may make them feel like their efforts to collect are pointless.
While debugging, I came to the conclusion that the issue was because the Game Mode of the active level was calling its begin play before the player. This was causing the error because the function in the player that took in the saved information called upon a widget that was not yet created.
Since the solution to the problem would require changes to the player. The team got together to discuss the necessary changes we needed to make. It led to us also deciding to adjust how we were doing the items for the player to make other aspects of the project smoother as well.
Once we had worked on the adjustments of the items. I removed the transfer of the players information from the game mode and had the player instead trigger when its save information transfer would occur.. Once that was resolved I was also able to implement some more of the saving of the players information such as abilities and sauce packet counts,
Author: Krishnie Katie Naidoo
Posted on 10/27/2023
Comments
Post a Comment