How to make the camera follow an object

Tutorial
To make the camera, first ensure that Game Maker is running in advanced mode. Then make sure you have your object ready with all of the needed events. Once your object is ready, open up the room, select the view tab and set the object following box to the object you want the camera to follow.