
If you do not create your own camera view and view port, GameMaker Studio 2 will still create a "default" camera and view/viewport based on the dimensions of the first room of the game. Note that this is true even if you don't have views activated in the room settings.

So, when you run a game in GameMaker Studio 2, you will have at least one camera, and it will draw what it sees (the view) to a view port, which is then shown in the game window to the player. You have a scene that you want to film (the GameMaker Studio 2 room where your game happens), you have a camera to film it with (the GameMaker Studio 2 camera obviously), you have a lens that captures what you see (the GameMaker Studio 2 view) and you have a screen that displays what you see (the GameMaker Studio 2 view port). The most obvious analogy to understand what is going on is to use that of an actual video camera. The View Port: The area of the physical screen where the camera view will be displayed.The View: This is what the camera sees, based on the position, projection and rotation of the camera.The Camera: This is essentially a "container" that will be used to hold the different view values and set how the room is displayed on screen.When you create your game, what the player "sees" at any given moment is governed by three different - but connected - things: This can all be easily achieved in GameMaker Studio 2 using cameras and view ports, and in this tutorial we'll take you through all the basics of setting up and manipulating custom cameras in your own projects.

with the main character) while another part is fixed (for example some status panel). A further example is in games in which part of the room should scroll (e.g. Cameras can also be used in multi-player co-op games, as they permit you to create a split-screen setup in which in one part of the screen you see one player and in another part you see the other player. For example, in most platform games, the camera follows the main character, since if you could see the whole level on the screen then your character would be too small to see and there would be no surprises for the player. Cameras give a mechanism for drawing different parts of your room to different places on the screen, or for drawing just a single part of your room to cover the whole screen.
