Godot 3.4: Lets Build a 2D Platformer!: Part 18 (Running & Finite State Machines) @BornCG
Godot 3.4: Lets Build a 2D Platformer!: Part 18 (Running & Finite State Machines)  @BornCG
Uploaded January 2022 | Updated September 2026, 2 weeks ago
Thanks for watching! In this Godot Game Engine tutorial I cover adding RUNNING to our game's character's abilities (with a 'run' key), and a FINITE STATE MACHINE. Here are the video chapter timecode links: :
- 0:00 - Video Intro
- 0:30 - This mini-series & Our project as it stands
- 1:17 - Future Tutorials in this series! (in no particular order)
- 1:53 - In this tutorial
- 2:17 - Going to 'Project - Export'
- 3:40 - Overview of Steve's scene & "SPAGHETTI code"
- 7:11 - Finite State Machines
- 9:03 - Enum for States (Enumerations)
- 12:08 - State Variable
- 13:05 - Organizing Code into States
- 14:18 - Match Statement for State Organization (similar to a switch statement)
- 15:58 - the 'AIR' State
- 18:49 - Creating a 'Move-and-Fall' Function
- 22:33 - The 'FLOOR' State
- 28:14 - Adding Running with a Modifier Key (z)
- 34:58 - Improving Acceleration
- 41:25 - Using the Ternary Operator to finish improved acceleration
- 44:40 - Changing the 'Walk' Animation Speed Scale (FPS) for Running!
- 48:17 - Tutorial Overview (what we did in this video)
- 48:37 - Fixing the Last Code Problem!
- 24:40 - Tutorial Ending + Call to Action + Social Media

#godotengine #gamedev

Play the Full Platformer Game Online Now!: borncg.itch.io

*****************
DONATE to support my channel via PayPal: goo.gl/ThkwyG
****************
Get Godot at:
Godot Game Engine - godotengine.org
****************
LIKE and FOLLOW me on:
FACEBOOK: facebook.com/BornCG
INSTAGRAM: instagram.com/born.cg
FOLLOW me on TWITTER: twitter.com/BornCG
Reddit: reddit.com/u/BornCG
**********************************
Visit my Godot 3 Tutorial Series playlist!:
youtube.com/playlist?list=PLda3VoSoc_TSBBOBYwcmlamF1UrjVtccZ

Visit my Blender 2.8 Tutorial Series playlist:
youtube.com/playlist?list=PLda3VoSoc_TRuNB-5fhzPzT0mBfJhVW-i

Visit my Blender 2.7 Tutorial Series playlist:
youtube.com/playlist?list=PLda3VoSoc_TR7X7wfblBGiRz-bvhKpGkS

Also check out my Blender Game Engine Basics Series playlist:
youtube.com/playlist?list=PLda3VoSoc_TSS7ht07sCt8zDCyAenOG6i

My Blender Video Effects Playlist:
youtube.com/playlist?list=PLda3VoSoc_TQQYZfHuzWtEjh11OTEKXBK

My Character Rigging (Minecraft) Mini-Series Playlist: youtube.com/playlist?list=PLda3VoSoc_TRWPzZHPqJlHfS0kOeQzQUQ

****************
Nicolas from the band 'The Lazy Saviours' created my Intro Jingle! Check out his band's album here:
on Amazon: amzn.to/2CID1nz
on iTunes: apple.co/2QgqHOU
[not a sponsor]
****************
Godot 3.4: Lets Build a 2D Platformer!: Part 18 (Running & Finite State Machines)Blender 2.7 Tutorial #33 : Sharp Edges on Smooth Objects #b3dGodot 3.2: Lets Build a 2D Platformer!: Part 1 #godotengineTHANK YOU! 100,000 Subscribers #YouTubeCreatorAwards Unboxing!Blender Game Engine Basics Tutorial #24: Shooting While Walking (Combining Actions) #b3d #gamelogicBlender 2.8: Simulating RigidBody Physics! #b3dBlender 2.7 Tutorial #45 : Depth of Field (Focus Blur) #b3dBlender 2.7 Tutorial #22 : Joining, Merging & Filling Holes #b3dBlender 2.7 Tutorial #75 : Fire and Smoke #b3dBlender 2.7 Tutorial #82: Modeling a Pumpkin #b3dLets Learn Blender! #10: Lights, Shadows, & Rendering in EEVEE!Blender 2.7 Tutorial #32 : Proportional Editing #b3d
BornCG |

Godot 3.4: Let's Build a 2D Platformer!: Part 18 (Running & Finite State Machines)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER