{ }codelper

Learn with tiles › 17

The edge

Find out if you are touching the end of the scene.

1

If Lara keeps walking, she goes out of the scene.

The touching edge? tile is true while you are touching the end of the scene. Let's send Lara back to where she started when she touches the end.

You have to ask inside "forever", once on every pass.

To do If Lara is touching the edge, go back to x -200, y -60.

Loading tiles…

2

You can also do this with the event tile when touching edge. It runs once, at the moment of touching.

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

Loading tiles…

Next: Is a key held down? →