m (1 revision: More fixing...)
(Fixed the image, ( and ) are removed from the filenames...)
Line 1: Line 1:
 
 
{{Block
 
{{Block
  
  
 
|name = When () Key Pressed
 
|name = When () Key Pressed
|image = File:When_()_Key_Pressed.png
+
|image = File:When_Key_Pressed.png
 
|imagewidth = 150px
 
|imagewidth = 150px
 
|category = [[Control Blocks|Control]]
 
|category = [[Control Blocks|Control]]

Revision as of 14:45, 15 May 2010

When () Key Pressed
When Key Pressed.png
Category Control
Type Hat
The When () key Pressed block is a Control Block and a Hat Block. This block allows the user to make a script which will only activate when a certain key is pressed.

The keys available to be used in this block include both the entire alphabet, the number keys and the arrow keys.

Common Uses

Often in games, keys are used to control different things - this block can be very useful with that. The block can also be used in word processors - practically anywhere.

The block can be very efficient when creating a simple 'press this, do that' script. An example is below:

File:Example laser shooting script start.png

This script is a common one: pushing the spacebar to fire a laser, bullet, or some other projectile.