-
Notifications
You must be signed in to change notification settings - Fork 0
Keyboard_wait
hugh greene edited this page Jun 20, 2022
·
1 revision
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).
edited by hpg678 on Github