keyboard_wait - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
NOTOC {{-}}
Pauses program execution until any key is pressed. This is handy when making a terminal or console similar to Command Prompt.
- none, there are no parameters for the function.
There are no return values for the function.
//in a non-draw event
scr_draw_fancy_graphic();
draw_text(0,0,"Press any key to continue.");
screen_refresh(); //ensures that the graphic shows up
keyboard_wait(); //ensures that the user sees the graphic
//and is ready for the game to continue
//(at which point the graphic presumably vanishes).