2D Metroidvania - 7 - Creating a camera state machine to follow the player (3 ways)
Wishlist "Lone Knight" on Steam: https://store.steampowered.com/app/2211930/Lone_Knight/
Asset: https://jeanmakesgames.itch.io/2d-metroid-youtube-serie
Download Godot 4.2: https://godotengine.org/download/windows/
New course "Create a 2D RPG game and introduction to 3D game": https://www.udemy.com/course/create-a-2d-rpg-and-a-3d-game-in-godot-42/?couponCode=GODOT42FEBRUARY
Coupon code: GODOT42FEBRUARY
Timeline:
00:00 Introduction
00:25 Start
00:50 First camera: Nested camera (not my favorite)
01:25 Creating a script for the camera
02:44 Adjusting the level scene
04:38 Second camera: Coding the panning movement
09:15 Third camera: following camera through code
11: Explaining how drag margin work (roughly)
12:02 Setting a vertical limit for the camera
12:41 Setting horizontal limit to the camera
12:47 Toggle the limit of the camera and drag margin
14:32 Creating a state machine for the camera that we can toggle through the inspector
17:52 Outro
Other Videos By Jean Makes Games
Other Statistics
Hollow Knight Statistics For Jean Makes Games
At present, Jean Makes Games has 47,926 views spread across 7 videos for Hollow Knight, and about an hours worth of Hollow Knight videos were uploaded to his channel. This is 7.35% of the total watchable video on Jean Makes Games's YouTube channel.