I want to handle two inputs:
right. But it seems that the
Node cant handle them.
So here is my scenario: When I press right my Character walks to the right; when I then press left (and keep right pressed) my Character walks to the left, which shouldn't happen since I press left and right and the movements should eliminate each other.
velocity.x -= WALK_SPEED
velocity.x += WALK_SPEED
It seems like the
_input method is only called for the last key pressed.
Is this normal? And how to get around this to have multiple inputs at once.