Learning the basics of input actions (Godot 4/C#)
<p>Video games are a unique form of art because, among other things, they are an interactive medium. This means that a core feature of any game is handling user inputs, and reacting to the press of keys and buttons to trigger various actions in the game.</p>
<p>And, to do this, a very common technique is to use what we call <strong>input actions</strong>.</p>
<p>So, in this article, we’ll see why input actions are an interesting tool, how to create custom ones in a Godot project and how to use them in your C# code to trigger some specific actions on-screen.</p>
<p>Also, note that in this tutorial, I’ll be re-using the scene and player setup that we discussed in <a href="https://medium.com/p/9f4fe4f24288" rel="noopener">this previous episode of the series</a>, with a little 2D avatar that can move horizontally or jump:</p>
<p><img alt="" src="https://miro.medium.com/v2/resize:fit:1100/1*NSS4Y9h9e32w1Nzx6N8LAA.gif" style="height:547px; width:1000px" /></p>
<p>So be sure to check it out first if you haven’t seen it yet!</p>
<p>As usual, since we’ll be coding our logic in C#, make sure that you have a version of Godot with .NET enabled.</p>
<p><a href="https://medium.com/codex/learning-the-basics-of-input-actions-godot-4-c-42458db5d1fc"><strong>Read More</strong></a></p>