| When () Pressed in Order | |
when ( v) pressed in order::makeymakey hat | |
| Category | Makey Makey |
| Type | Hat |
| Introduced in | 3.0 |
The When () Pressed in Order block is a hat block and a Makey Makey block. The block activates when the chosen keys are pressed in that specific order, either on the computer keyboard or the Makey Makey device. The dropdown options are:
- left up right
- right up left
- left right
- right left
- up down
- down up
- up right down left
- up left down right
- up up down down left right left right (Konami Code)
To include any key combinations, insert a reporter block in the drop-down menu, for example a join block. In the join block, insert the keys to be pressed in order, separated by space. For example, when (join[][a b c d]) pressed in order would require the user to type out the sequence "A, B, C, D" in their keyboard in order to execute the code below. Most symbols that can be typed on a keyboard are possible too, for example, an exclamation mark, although characters that require pressing ⇧ Shift might glitch. Enter is also supported.
Example Uses
- Making a sprite move in a certain direction
when (up down v) pressed in order change y by (10) change y by (-10)