Lesson 8
The camera
The camera decides what the player sees. Move it to show another part of your level.
Draft lesson: nobody has followed it from start to finish in the editor yet, so a step may not match what you see.
Video coming soon
We are making a video for this lesson. For now, follow the steps below!
In this lesson you will
- Know what the camera does
- Find the camera in your level
- Move it and see the difference
What the player sees
Your level can be much bigger than the screen. The camera is like a window: the player only sees what is inside it.
Every new project has a camera called MainCamera.
Find it
In the Game panel, the camera is a box with its name on it.
Move the camera
Click MainCamera and change its Position. Press Play. Now the game shows another part of your level!
Looking around is not the camera
In the editor, you can zoom with the mouse wheel and move around with Space + drag. That does not move the camera. It is only you, looking around.
Press Ctrl + 0 to go back to the camera's view.
Try this
- Put a sprite outside the camera's box. Press Play. Can you see it?
- Now move the camera so you can.
Later, in the Builder level, you will make the camera follow your player.
Try it here
Your mission
Move the camera until the hidden star is on the screen.
Soon, a small piece of the editor will be right here, so you can practise without leaving the lesson. For now, try it in the editor!