From the course: Building a Physics-Based Platformer in GameMaker Studio Using GML

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Enable views

Enable views

- [Instructor] By default, when we run our game, GameMaker will show us the entire room, but this isn't the kind of behavior that we want. We want to show a subset of the room that follows our player around as they run through the level. We do this by using views. I'll click on the views tab and enable the use of views by checking here, and also setting the view to be visible when the room starts. We can see on the right now, we have a rectangle indicating the view in the room. We have two important considerations when setting up the view. The first is the view in the room, and the second is the part on the screen. You can think of the part on the screen as the area that we show on the user's display, and the view in the room as the subsection of the room that we show in the port. By setting it up this way, we can show more or less of the room in the same area on the user's screen as needed. First, let's set up the port on screen. I have a smaller monitor so I'm gonna set the width to…

Contents