keyboard_wait
From ENIGMA
Notation
keyboard_wait()
Description
Pauses program execution until any key is pressed.
Parameters
None.
Return Values
Unknown.
Example Call
//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).
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).