Implementing a simple 2D character controller (Godot 4/C#)
<p>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# :)</p>
<p>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 :)</p>
<p><img alt="" src="https://miro.medium.com/v2/resize:fit:1100/1*qTZYt9loZQVQnaiY31QHfA.gif" style="height:548px; width:1000px" /></p>
<p>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:</p>
<h2><a href="https://mina-pecheux.medium.com/the-power-of-godots-2d-tilemaps-997dd2293e82?source=post_page-----9f4fe4f24288--------------------------------" rel="noopener follow" target="_blank">The power of Godot’s 2D Tilemaps!</a></h2>
<h3><a href="https://mina-pecheux.medium.com/the-power-of-godots-2d-tilemaps-997dd2293e82?source=post_page-----9f4fe4f24288--------------------------------" rel="noopener follow" target="_blank">Let’s see how to easily create 2D levels thanks to tilesets and tilemaps :)</a></h3>
<p><a href="https://mina-pecheux.medium.com/the-power-of-godots-2d-tilemaps-997dd2293e82?source=post_page-----9f4fe4f24288--------------------------------" rel="noopener follow" target="_blank">mina-pecheux.medium.com</a></p>
<p><em>As usual, don’t forget that you can get the demo scene and all the assets from this demo </em><a href="https://github.com/MinaPecheux/godot-tutorials" rel="noopener ugc nofollow" target="_blank"><em>on my Github </em></a><em> with all my other Godot tutorials.</em></p>
<p><a href="https://medium.com/codex/implementing-a-simple-2d-character-controller-godot-4-c-9f4fe4f24288"><strong>Read More</strong></a></p>