Game over when actor touches edge of screen

Hi everyone, I wanted to know, how I would end the game, when my actor(a snake) touches the edge of the screen.
So when my actor(a snake) touches the edge of the screen, I want it to say game over, display the score, a retry button and also go back to main menu button.

Please can you explain in as much detail as possible, thank you.

Comments

Sign In or Register to comment.