Menu Runtime Errors On Pressing Pause


The Problem:

When going through some testing of the new confirmation, and win lose menu's I kept running into these runtime errors when trying to press pause inside of the confirm leave / win / or lose menu's. This bug began once I had put in place the three branches for checking if any other menus were open before allowing the pause to be activated or deactivated.  Previous to this system a soft lock occurred when pausing the game to where the user would get stuck with whatever menu they were in before pause being present after pause but no way to close the menu. With that lock present this new fix was a must to get running or else it would extremely effect the user experience by making the game basically unplayable.

The Solution:

The fix to this was simple enough once given a little thought. The issue present is that when we first press play and it checks if the menu is open there is no menu to check for since it has not been called yet or constructed. The fix to this is additional branches with the is valid check on the menu before checking if it is open. If the menu is not created why would we check if it is open, so once we had put those in place the run time errors we not present anymore and the menu system was now user ready.

Get Ascending: Peaks Beyond