Keyboard_wait - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

NOTOC {{-}}

Notation

Description

Pauses program execution until any key is pressed. This is handy when making a terminal or console similar to Command Prompt.

Parameters

  • none, there are no parameters for the function.

Return Values

There are no return values for the function.

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).