Pause Menu Bug in Win and Lose Menu
Author: Jymeer Wilkins
Problem:
I ran into a problem with the pause menu again. I noticed that if you were to lose or win the game, you could still pause and un-pause the game. In the lose menu it would continuously overlap menus, because the enemy would continuously kill you when you are un-paused. The pause menu would show up in the win menu.
Solution:
I kind of already knew of a way to fix this problem, I was just implementing it wrong without knowing. For the upgrade bench menu, I disable the player input. I didn't want the game to pause, but I also didn't want the player to be able to shoot or anything like that. I tried implementing this on the menus, but I was calling disable input from the player controller instead of the player character. For a bit I was confused on why it wasn't working, so I looked back at the upgrade bench to see how I did it there. That's when I noticed that I was hooking it up wrong. I fixed the mistake and successfully disabled the players input.


Comments
Post a Comment