Intro to 3D Game Development

0 of 193 lessons complete (0%)

Scripting Part 3: Finishing the Game Loop

Add a Reset Button

You don’t have access to this lesson
Please register or sign in to access the course content.

To be able to reset the game, we’ll add a button in the world that allows players to restart by stepping on it. Later, you could change your code to always reset on a timer, or use a particular key on your keyboard, but this will give us the ability to reset and repeat the game as much as we want.

You can pick anything to be your button, but for this code to work, it needs to have two animation frames.

Once you have a button, drag it into your world.