How do I make my movement not cancel out when left and right inputs are active at the same time?
I am currently programming a 2d platformer, and movement using a finite state machine. My movement works perfectly as intended when I only press left or right, but, for example, when I hold down right and tap left my character can no longer move until both inputs are released. This is the code for my movement inside the move_state. extends State @export var idle_state: State @export var jump_state: State @export var fall_state: State var move_speed: float = 400.0 var acceleration: float = 25.5 func process_physics(delta: float) -> State: parent.velocity.y += gravity * delta var movement = Inpu
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.