FANDOM


When () Key Pressed
When () Key Pressed
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 UsesEdit

This block can be often used in games, keys are used to control different things, such as character movement. The block can also be used in word processors.

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

Example laser shooting script start

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


Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.