Game is paused, speech still skips

Started by Ryan Timothy B, Fri 18/06/2010 03:39:37

Previous topic - Next topic

Ryan Timothy B

I am pausing the game using  PauseGame()  or by using a GUI that pauses the game while shown, but speech still skips with the mouse.

How do I avoid this?  I mainly wanted the game to pause with the space bar so that when the players are reading text from characters, they can read it at their own speed.  Or pause it whenever they need to.  But I definitely don't want the speech to skip and also the Dialog showing up if the speech is skipped.

To me this should be considered a glitch, unless there is some kind of game variable that I'm overlooking.

GarageGothic

Hmm, I seem to remember finding a workaround for this. Have you tried changing the speech skip mode to not respond to clicks by calling SetSkipSpeech(2) when the GUI is brought up and then setting it back to the previous mode when unpausing?

Ryan Timothy B

Works like a charm, Garage.  I had searched through all the game variables since that's where some other skipping speech variables are, I didn't know there would be some that weren't the extension of "game.".


CJ, I still believe clicking through speech should be disabled on the AGS end while the game is paused.  Especially if it were a GUI that was covering most of the screen and pausing the game while shown, people wouldn't know they are skipping speech when they click off to the side.
You can also still select Dialog options while the game is paused, but I'm willing to let that one slide.

Pumaman

Fair point ... pausing the game will probably stop the next line of speech appearing, but yeah if your Pause GUI is on top of the speech then you wouldn't expect this to happen.

Ryan Timothy B

Actually it doesn't.  I guess I didn't mention that.  You can click through all the text in the dialog while it's paused, then the dialog window will pop up again.

Even with the game paused, honestly, I don't expect it to skip any line of text, even the one it's on.  Whether the gui is covering it or not.

SMF spam blocked by CleanTalk