[solved]image overlay skippable only by key or mouse click

Started by pier, Mon 18/05/2020 09:52:01

Previous topic - Next topic

pier

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

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

Khris

Use
Code: ags
  WaitMouseKey(1000);


eSkipAnyKeyOrMouseClick  is an enum value you can assign to  Speech.SkipStyle, not a command.


SMF spam blocked by CleanTalk