You know, all those little 2D games where you control a little avatar that’s jumping around and running on platforms? Well, today, we’re going to see how to create such a basic 2D character controller in Godot 4 and C# :)
By the end of this tutorial, you’ll know how to setup a basic physics-based 2D player movement manager with some collisions with the ground, and even a few walk animations :)

Also, note that for this tutorial, I’ll be using this little 2D level based on tilemaps, and if you’re curious about how to create such a scene, you can check out this previous tutorial to learn the basics of 2D tilemaps in Godot 4:
The power of Godot’s 2D Tilemaps!
Let’s see how to easily create 2D levels thanks to tilesets and tilemaps :)
As usual, don’t forget that you can get the demo scene and all the assets from this demo on my Github with all my other Godot tutorials.