[SOLVED] Skipping text via keyboard... but not ALL keys?

Started by guga2112, Wed 19/02/2020 12:06:29

Previous topic - Next topic

guga2112

Is it possible to leave the speech skip via keyboard, but not all the keys?

I'm testing my Steam build and I can't get a screenshot of my character speaking, because the text is skipped as soon as I press F12 to take a snapshot via Steam.

If not, I'll probably switch to mouse and timer.

EDIT: Solved it! I set the game to skip only by mouse and timer, and then put this on my repeatedly_execute_always:

Code: "Adventure game studio"

if(IsKeyPressed(eKeyF) && player.Speaking)
{
    Speech.SkipStyle = eSkipKeyMouseTime;
}
else
{
    Speech.SkipStyle = eSkipMouseTime;
}


Now it skips also via keyboard, but only if I press F. I'll probably put there an OR combination of esc, backspace, space, enter and dot instead of F.

Khris

You can use this in game_start:
Code: ags
  game.skip_speech_specific_key = eKeyF;

guga2112

Thanks, that's something I didn't know (and does not appear in the editor's autocomplete). But this restricts it to only one key, and I want a handful, so I think I'll keep my repeatedly_execute_always workaround

SMF spam blocked by CleanTalk