This is the 9th video in a series on remaking Hotline Miami in GameMaker Studio.
The video tutorial shows you how to setup a more efficient and smooth scrolling camera system GameMaker Studio. This can be done by manually ajusting camera properties of the default camera[0] with an object (obj_Camera). We grab/get the x,y, width + height values of the camera to change where the camera is being placed. To give this camera a bit more smoothness we lerp between the old camera x,y values and the target specific x,y values.
// camera in detail:
• 🔴Game Maker Studio 2 | Basics - Easy ...
• 🔴Game Maker Studio 2 | Basics - Pixel...
0:00 Intro, what we want to clone
0:58 Subscribe
1:16 Quick prereview
2:16 Disable default camera to follow player
2:51 Creating camera object
4:18 Target variable
5:26 Set camera position to a target
6:22 Understanding camera properties
7:09 Grabbing camera[0] width and height to ajust
8:52 Clamping the possible camera position values
12:13 Smooth camera with lerp
14:23 Set fullscreen and quick game end button
Project + assets found here:
https://1up-indie2.itch.io/hotline-mi...
👑 Support me and get fresh game art and game maker projects every month:
/ 1upindie
Follow me on:
📸 Instangram: / 1upindie
🐦 Twitter: / 1upindie
💬 Discord: / discord
📜 Udemy: https://www.udemy.com/course/become-a... (See youtube about page for discount)