Skip to content

Keyboard_wait

hugh greene edited this page Jun 20, 2022 · 1 revision

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).
Clone this wiki locally