Hotline Miami Remake in GameMaker Studio #9 - Camera Setup, follow + smooth scrolling

Channel:
Subscribers:
12,200
Published on ● Video Link: https://www.youtube.com/watch?v=bJgOI8EbSLs



Category:
Tutorial
Duration: 15:42
1,831 views
50


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)




Other Videos By 1up Indie


2021-01-14Free video game assets in 2021: Where to get + suprise one
2021-01-13Hotline Miami Remake in GameMaker Studio #17 - Muzzle
2021-01-12Hotline Miami Remake in GameMaker Studio #16 - Recoil
2021-01-12Devlog - Character/sprite sheet creation tool #1
2021-01-11Hotline Miami Remake in GameMaker Studio #15 - Shooting
2021-01-09Hotline Miami Remake in GameMaker Studio #14 - Ammo pass in
2021-01-08Hotline Miami Remake in GameMaker Studio #13 - Weapon cycle
2021-01-06Hotline Miami Remake in GameMaker Studio #12 - Weapon pick up... picked up
2021-01-05Hotline Miami Remake in GameMaker Studio #11 - Weapon pickup hover
2021-01-02Hotline Miami Remake in GameMaker Studio #10 - Camera target swaps
2021-01-01Hotline Miami Remake in GameMaker Studio #9 - Camera Setup, follow + smooth scrolling
2020-12-30Hotline Miami Remake in GameMaker Studio #8 - Player animation + keyboard input
2020-12-29Hotline Miami Remake in GameMaker Studio #7 - Setup Camera, tileset + player
2020-12-23Cool Lightning like zeus would throw [Game Maker Studio 2 | Advanced]
2020-12-22Hotline Miami Remake in GameMaker Studio #6 - Finishing the startscreen
2020-12-21Hotline Miami Remake in GameMaker Studio #5 - Cool 3d text
2020-12-20Remake Hotline Miami in GameMaker Studio #4 - Wiggling text
2020-12-20My Udemy course for "free"
2020-12-19Hotline Miami Remake in GameMaker Studio #3 - Building the startscreen
2020-12-18Hotline Miami Remake in GameMaker Studio #2 - Why the startscreen is crucial
2020-12-11Hotline Miami Remake in GameMaker Studio #1 - Why is it so good



Tags:
Hotline Miami gamemaker
Hotline Miami gamemaker tutorial
Hotline Miami gamemaker studio
Hotline Miami gamemaker studio tutorial
Hotline Miami background tutorial
Hotline Miami gms
gamemaker studio tutorial
hotline miami remake
gamemaker studio 2 camera tutorial
gamemaker studio 2 camera follow player
gamemaker studio 2 camera