A disclaimer: I didn't invent this approach! I found it here when doing research on how to solve this for my game Bottomless:
https://code-disaster.com/2016/02/sub...
Timestamps:
00:00 Intro
00:30 Why and when to use this technique
00:54 Stretch-mode: Viewport
01:40 Stretch-mode: 2D
02:40 Setting up a pixel perfect game with high-res UI (needed for smooth cam)
04:06 How the smooth camera works
04:23 Setup the smooth camera
06:13 Adding the camera to the player
09:40 Final settings and testing
As always, you'll find the files of the tutorial in my GitHub here:
https://github.com/RPicster/Godot-Col...
You want to support me?
Follow me on Twitter:
/ mv_raffa
Join my Discord community server:
/ discord
You can buy me a coffee to fuel my brain:
https://www.buymeacoffee.com/raffa
** 𝗖𝗿𝗲𝗱𝗶𝘁𝘀 **
Game Art by Kenney (Pixel Line Platformer):
https://www.kenney.nl/assets/pixel-li...
CRT Shader:
https://godotshaders.com/shader/vhs-a...
Music:
Plusma, Von Wegen - sopha https://chillhop.com
Saib - Beyond Clouds https://chillhop.com
Tesk - Doin It https://chillhop.com