Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: auriond on Mon 29/07/2013 03:43:25

Title: SOLVED: Allow speech to be skipped by mouse only... but it doesn't
Post by: auriond on Mon 29/07/2013 03:43:25
First off, I'm building over the default game that comes with 3.2.1, so maybe there's something in the settings I'm missing. (Also, very new to 3.x, since the last time I touched AGS it was 2.72.)

But in the General Settings, I've selected "Mouse only" for "Allow speech to be skipped by which events". I do not want the text to move on if you wait. I do not want it to move on if you touch the keyboard. Just the mouse.

However, the dialog is still moving on when I don't touch the mouse! I can slow it down with Game.TextReadingSpeed, but I can't stop it.

So, my question is: is it possible to only skip dialog using the mouse?
Title: Re: Allow speech to be skipped by mouse only... but it doesn't
Post by: monkey0506 on Mon 29/07/2013 07:28:08
I assume you mean spoken lines from the dialog script? Does it make any difference if you indent the line and use a normal Say command?

If I understand you correctly, this could actually be a bug if speech is timing out when it's set to skip by mouse only.
Title: Re: Allow speech to be skipped by mouse only... but it doesn't
Post by: Crimson Wizard on Mon 29/07/2013 08:24:30
IIRC there is a bug in the engine. Consider selecting "mouse & keyboard" instead, for now.

This affects any built-in speech, regardless of which command is called and from what script.
(AFAIK the dialog script implicitly runs same core function as Character.Say)


EDIT:
I checked the engine code, and obviously it is different from how it is described in the manual:

Manual: 0  player can skip text by clicking mouse or pressing key
Engine: skip by mouse, key AND timer.

Manual: 1  player can skip text by pressing key only, not by clicking mouse
Engine: skip by key AND timer.

Manual: 2  player cannot skip text with mouse or keyboard
Engine: skip by timer

Manual: 3  text does not time-out; player must click mouse or press key each time
Engine: skip by key and mouse

Manual: 4  player can skip text by clicking mouse only, not by pressing key
Engine: skip by mouse AND timer.

I now doubt this was made by mistake, I think it was rather made deliberately, just wrongly explained in the manual.
We could add 2 options more to the next version of AGS:
- Skip only by key (no mouse or timer)
- Skip only by mouse (no key or timer)

EDIT2: Hmm, also Editor calls these settings wrongly (it sais "Keyboard only" or "Mouse only" while those options imply use of timer too)
Title: Re: Allow speech to be skipped by mouse only... but it doesn't
Post by: auriond on Mon 29/07/2013 08:54:26
Ah ok, that explains a lot. Thanks much! I'll set the text to skippable by mouse and keyboard then.