Key Condition
Revision as of 03:20, 20 April 2012 by imported>Repenning
Definition: |
True if the specified key is pressed on keyboard.
Please note that you cannot use the DELETE key as an argument for the key condition. It is reserved in the AgentCubes software for deleting text, and commands in behaviors. |
Parameters: | key |
Example: |
Create a cursor controlled agent by using 4 rules: IF key(up) THEN move(up) IF key(down) THEN move(down) IF key(left) THEN move(left) IF key(right) THEN move(right) |