Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: TDBFW1 on Fri 11/08/2017 18:57:39

Title: Unpausing game with GUI
Post by: TDBFW1 on Fri 11/08/2017 18:57:39
Is there a way to let the game continue running but have a GUI open throughout?
Title: Re: Unpausing game with GUI
Post by: dayowlron on Fri 11/08/2017 20:13:39
Not sure I understand the question, but yes. in fact the standard status bar is a GUI.
Title: Re: Unpausing game with GUI
Post by: Crimson Wizard on Fri 11/08/2017 20:18:13
There are several GUI styles. In the editor the property is called "Visibility". It will only pause the game if it's set to "Pause game when shown", but set it to anything else, like "Normal, initially on" and game won't be paused while it is on screen.
Title: Re: Unpausing game with GUI
Post by: TDBFW1 on Fri 11/08/2017 20:22:06
OK thanks. It didn't seem to be working before but I'll try again.
Title: Re: Unpausing game with GUI
Post by: TDBFW1 on Fri 11/08/2017 20:24:54
I'm trying to make a character walk somewhere but it doesn't seem to work.

int ran=Random(1);
if (ran == 0)
{
  player.Walk(60, 207, eNoBlock);
  player.FaceDirection(eDirectionDown, eBlock);
  aGrandfather_Clock_Wind_up.Play(eAudioPriorityLow, eOnce);
  aGrandfather_Clock.Play(eAudioPriorityLow, eRepeat);
  Display("Quickly press 'N' to record any actions of the staff.");
  Display("You've only got limited time.");
  SetTimer(1, 40);
}
else
{
  SetTimer(1, 1);
}
}


It just skips to the first line of dialogue.
Title: Re: Unpausing game with GUI
Post by: TDBFW1 on Fri 11/08/2017 20:47:01
Sorry, I'm an idiot. Problem solved.;)

However, I've stumbled upon another problem. My GUI has button in them, with are partially transparent (I.e. transparent circles in them). However, when the character is walking, the buttons become greyed out. Is there any way to turn this off?
Title: Re: Unpausing game with GUI
Post by: Slasher on Fri 11/08/2017 20:52:35
in the general editor settings scroll down to Visual.

At the 'When player interface is disabled, GUI's should..... Set to 'Display normally'


Title: Re: Unpausing game with GUI
Post by: TDBFW1 on Fri 11/08/2017 20:58:09
Thanks.