Libgdx: Pause menu and Pause state

Essa Rebaño picture Essa Rebaño · Jul 23, 2013 · Viewed 10.7k times · Source

I have a question regarding the pausing/freezing a game while a window/pausemenu will appear at center of the screen. I've already created a pausescreen class which will be called each time the back key is being pressed.

My problem is that I don't know how to freeze or put the game to pause, this becomes a problem because whenever i tried to click on the outsides of the pause window the player could move around.

Answer

Pranav008 picture Pranav008 · Jul 23, 2013

superjumper code

follow this link . You will find a gameScreen , there they have specified game state which is responsible for pausing and resuming the game. Read it and your problem will be solved.