|
|
| Downkey | ||
| State = Downkey() | ||
| Parameters: NONE | ||
| Returns: State = The sate of the key (0= up, 1 = pressed) |
||
The DownKey() function with return the state of DOWN ARROW key on your keyboard. Since the Arrows keys are commonly used as game controls, these keys have their own special commands. Purely to make things easier to remember. If the key is being pressed this function will return a value of 1 (True), however if it's not being pressed, it will return a zero (False. FACTS: * None Mini Tutorial #1: This example shows how to read the four arrow keys.
Mini Tutorial #2: This example shows how to use arrow keys to control a character. In this case the character is a "circle", but the same basic logic applies to controlling a sprites or an image.
|
| Related Info: | ALtKeys | CtrlKeys | EnterKey | Leftkey | Mouse | MouseButton | Rightkey | Scancode | ShiftKeys | Spacekey | Upkey : |
|
|
|||||||||||||||||||||||||||||||||||||||
|
(c) Copyright 2002 - 2026 - Kevin Picone - PlayBASIC.com |