Skip to content
Uto edited this page May 21, 2017 · 6 revisions

GETKEY flagno

This action waits for the player to press a key, and then stores its code in the flag flagno.

Browsers use to return ascii code for standard keys (letters, numbers, punctuation signs, etc.), please check the following table:

http://www.asciitable.com/

There is also a list of special codes here:

http://www.javascripter.net/faq/keycodes.htm

Important note: Due to javascript way of working, implementing this condact is a lot of tricky. As consequence it works, but won't work within a code blocks. Using the condact within a block will make that block enter an unwanted status and the game/story will freeze. It won't either work fine in a RESTART loop.

Clone this wiki locally