What is the best method to implement a pause system?Would like the game to toggle pause when "p" is pressed on the keyboard.I know how to read the keyboard, just don't know what to do after that.Everything should stop when pause is enabled.Any help would be appreciated, thanks!

[QUOTE=Kraudi] When you press "p" make System -> Set time scale to 0 (that pauses the game)

Thats it. Setting it back to 1.0 resumes your game.[/QUOTE]Hi,

Ok, I understand that.I would also like to display "PAUSED" text when game is paused.I've setup a "PAUSED" text, set it to be invisible at game start,and gave it a variable "GameIsPaused" which is set initially to false.

[QUOTE=JeZLee] [QUOTE=Kraudi] When you press "p" make System -> Set time scale to 0 (that pauses the game)

Thats it. Setting it back to 1.0 resumes your game.[/QUOTE]Hi,

Ok, I understand that.I would also like to display "PAUSED" text when game is paused.I've setup a "PAUSED" text, set it to be invisible at game start,and gave it a variable "GameIsPaused" which is set initially to false.

How would I toggle the display of above "PAUSED" text?Thanks!

JeZ+Lee[/QUOTE]

If you are setting the time scale to 0 also make the pause text visible.If time scale is at 1 make it invisible