{ }codelper

Learn with tiles › 16

Touching?

Find out if you are touching another object.

1

A friend, Nyang, has come to the scene.

The touching (other)? tile is true while you are touching that object. Like a comparison tile, you pick it from ▾ after tapping the condition slot of an if tile.

The tile you picked has a slot that says other. Tap that slot and type Nyang. You type the name of an object in the scene exactly as it is.

Walk with the → key and make Lara say hi when she touches Nyang.

To do After walking, if Lara is touching Nyang, make her say Hi, Nyang!.

Loading tiles…

2

To do something at the moment of touching, use the event tile when touching (what). Like "when tapped", it is a tile you place on its own.

Lara keeps walking. When she touches Nyang, play the hit sound and send her back to where she started.

To do When touching Nyang, play the hit sound and go back to x -200, y -60.

Loading tiles…

Next: The edge →