Pause State

Hi there,

I am looking for a way to introduce some sort of pause state at the beginning of my app, so that nothing happens until the user presses a button.

Does anyone know if this is possible?



Thanks :slight_smile:

SimleGame has a pause functionality if you press P, maybe thats what you want.

a bool



if( ! pause) {

  //code block

}

I'd suggest using GameStates.  Then in the update method of that state just check if any key is being pressed, if one is you unload that state and load your main menu state.

Ah right - yep got it - thanks guys :slight_smile: