Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: barefoot on Sat 01/01/2011 11:34:36

Title: SOLVED: pause/unpause game when gui visible/invisible
Post by: barefoot on Sat 01/01/2011 11:34:36
Hi

I have been looking for an answer to this:

I know that you can select keypresses to pause and unpause a game, but i want to pause game when a gui button is used to bring up the main gui window.. then with a close gui on the main gui it closes the main gui and the game continues...

The button gui is: gnotepad and when clicked it brings up the main gui: gnotepad1 which pauses the game and has a button: Button9 which closes the main gui and unpauses game.

I know the game pauses when cusor in over control custom buttons.

any thoughts?

cheers

barefoot

Title: Re: pause/unpause game when gui visible/invisible
Post by: monkey0506 on Mon 03/01/2011 06:21:30
Just change the display type of the GUI (in the editor) from "Normal, initially off" to "Pause game when shown".
Title: Re: pause/unpause game when gui visible/invisible
Post by: barefoot on Mon 03/01/2011 07:55:31
Cheers monkey   :=

barefoot