Learn with tiles › 7
When a key is pressed
Make Lara move when you press a key on the keyboard.
1
The when key (key) pressed tile runs when you press a key on the keyboard. You choose which key in the slot of the tile.
The tile below is already set to the → right key. Put a move by tile inside it, press ▶ Run, and then press the → key on your keyboard.
On a phone, the arrow buttons that appear under the scene are the same keys.
To do Make Lara move 30 to the right every time you press the → key.
Loading tiles…
2
If Lara can only go right, she cannot come back. Place one more "when key pressed" tile and choose the ← left key.
To go left, type a number smaller than 0 in the x slot.
To do Make Lara move 30 to the left when you press the ← key. Leave the → key as it is.
Loading tiles…