Hello,
I found this engine and I wanted to try something really simple at first - 2d character movement. I read in the documentation that the recommended way to check for input is by using Input Map. I defined there one action "move_up" with the key W.
In the code I wrote:
public override void _Input(InputEvent @event)
{
if (@event.IsActionPressed("move_up"))
{
GD.Print("up pressed");
}
}
And in the game after each W press, I get:
up pressed
up pressed
I don't understand why it is called twice.. it's the same even if I release the key. There is also another problem.. Each code snippet from the documentation here seems to call that twice...
I hope someone can answer that :)
P.S. I'm using the latest C# version of Godot on Win10 .