Step 7
Getting the camera to follow the player
We can no longer see the player if it moves outside of the game screen, so let's get the camera following the character. Grab the "Constantly" block from Events, and drag "Pan camera to 0 x 0 y" (from Looks) inside it. Click on "Pan" and change it to "Snap".
Then grab "x position of myself" from Transform, as well as "+" from Operators, and click on the + to change it to --. Drag the "x position of myself" block into the left side of the "-" block, and then grab the "0" block from Operators, and drag it into the right side. Click on 0 and change it to 384. Drag all of these blocks into the first slot in the "Snap camera" block.
Now duplicate the "x position of myself -- 384" blocks, and drag them into the second slot in the "snap camera" block. To set the camera following the player vertically, in the duplicated block, change the x to y, and change 384 to 256.
Depending on the size of your Game Resolution, you may need to tweak 384 to another number, and 256 to another number to get the player character centred in the middle of the game.
Test your game by playing it. The camera will now follow the player wherever they move to.
Good job!