I am using the 2d engine and i made it so that the character can go up down left and right. However when you press more than one key he can go diagonally or doesnt change direction when you press another one while having the previous one pressed. I want to make it so he can only go right left up or down and when you press more than one key he stops. ty in advance
I am using the gdscript and the usual
... Input.is_action_pressed("ui_right")
movement.x = 100 ...