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:
https://youtu.be/a9scW0i3tYw
https://youtu.be/9SqqelZxSxs


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-miami-clone-project-sprites

👑 Support me and get fresh game art and game maker projects every month:
https://www.patreon.com/1upindie

Follow me on:
📸 Instangram: https://www.instagram.com/1upindie
🐦 Twitter: https://twitter.com/1upIndie
💬 Discord: https://discord.gg/gvr98nb
📜 Udemy: https://www.udemy.com/course/become-a-video-game-developer-with-gms-23/ (See youtube about page for discount)

1up Indie

View all posts

Add comment

Your email address will not be published.