Step 1: Create Lives Variables

Goal:


Let’s start coding by creating a variable. Variables are containers that can hold information like numbers so that we can use them in other places in our code.

Our variable will hold the number of lives we have in our game.

Steps:

    1. Select Variables from the left side of the screen
    2. Click the button that says Make a Variable
    3. Type “Lives” in the window that appears and then click OK

Code:


Click to replay