4 Collisions

Section Menu

Snake Home | 1 | 2 | 3 | 4 | 5

You will find it refreshingly easy to add the necessary collision detection to the game. In short, if the snake head collides with any of the body parts, then the player has made a mistake. In this tutorial, we will simply restart the game.

Open up the snake head object window. Add a Collision Event with the body object. Drag in a Restart Room action.

Other Collisions

We can get the game going without any more collision detection. Do remember to think about the possible collisions when you add more items to your version of the game. Some blocks to use to surround the game field and provide barriers within the game are likely to be required.

⇐ Previous | Next ⇒