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.
And, to do this, a very common technique is to use what we call input actions.
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.
Also, note that in this tutorial, I’ll be re-using the scene and player setup that we discussed in this previous episode of the series, with a little 2D avatar that can move horizontally or jump:

So be sure to check it out first if you haven’t seen it yet!
As usual, since we’ll be coding our logic in C#, make sure that you have a version of Godot with .NET enabled.