Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: pier on Mon 18/05/2020 09:52:01

Title: [solved]image overlay skippable only by key or mouse click
Post by: pier on Mon 18/05/2020 09:52:01
hi! Wanted to create a graphical overlay that can be skipped only by clicking or pressing a key...I guess is an easy task but i can't figure it out.
Code (ags) Select

function hquadroblu_Look()
{
player.Say("un quadro blu.");
Overlay* myOverlay = Overlay.CreateGraphical(150, 45, 11, true);
Wait(1000);
eSkipAnyKeyOrMouseClick;
myOverlay.Remove();
GiveScore(5);


thank you very much in advance and sorry again for the question
Title: Re: image overlay skippable only by key or mouse click
Post by: Khris on Mon 18/05/2020 11:41:02
Use
Code (ags) Select
  WaitMouseKey(1000);

eSkipAnyKeyOrMouseClick  is an enum value you can assign to  Speech.SkipStyle, not a command.
Title: Re: image overlay skippable only by key or mouse click
Post by: pier on Tue 19/05/2020 18:03:36
thank you very much!  :smiley: