Game Development Reference
In-Depth Information
Setting the keyboard key
Now, we are going to add an action. In this case, the question is, "Is a certain key
pressed?" If yes, then the object will move up. Once you click
On key pressed
, you
should get the
Parameters for Keyboard: On key pressed
window shown in the follow-
ing screenshot:
Go ahead and select
<click to choose>
. You should get the dialog box shown in the fol-
lowing screenshot: