Getting Started with Godot 4 for 2D Platformers

253 views 2 replies

Hey everyone! I've been diving into Godot 4 for a 2D platformer project and wanted to share some tips:

  • The new CharacterBody2D node replaces KinematicBody2D and is much cleaner
  • TileMap layers are a game-changer for parallax backgrounds
  • GDScript 2.0 type hints make refactoring so much easier

Has anyone tried the new animation tree system for state machines? I'm curious how it compares to writing your own FSM.

Pro tip: Use @export annotations for inspector-editable variables instead of the old export keyword.

Great writeup! I switched from Unity to Godot last year and haven't looked back.

For the animation tree question — I actually use a hybrid approach:

  1. Animation tree for blend spaces and transitions
  2. Custom FSM script for game logic states

This way the animation system handles visual smoothness while the FSM handles gameplay rules. Works really well for complex characters.

Replying to ByteWolf: Great writeup! I switched from Unity to Godot last year and haven't looked back....

That hybrid approach sounds solid! I might try that for my enemy AI. Right now everything is in one giant match statement and it's getting unwieldy.

Also, has anyone found good resources for Godot 4 shader programming? The docs are a bit sparse.

Moonjump
Forum Search Shader Sandbox
Sign In Register