{ }codelper

Learn with tiles › 6

When tapped

Make something happen when you tap Lara.

1

Until now, things happened as soon as you pressed ▶ Run. That is because the tiles were attached under the when started tile.

An event tile decides when to do something. Tiles attached under the when this object is tapped tile run when you tap Lara.

Put a say tile inside "when this object is tapped", press ▶ Run, and then tap Lara on the scene.

To do Make Lara say That tickles! when you tap her.

Loading tiles…

2

Every time you tap, the tiles under "when this object is tapped" run again from the start. If you tap twice, they run twice.

This time you take out the event tile yourself too. Take "when this object is tapped" out of Events in the drawer, and put a move by tile inside it.

To do Make Lara move 50 to the right every time you tap her.

Loading tiles…

Next: When a key is pressed →