Fixed player double jumps not working. and added a dash
This commit is contained in:
@@ -17,6 +17,7 @@ func on_phyisics_process(delta: float) -> void:
|
||||
if direction:
|
||||
player.velocity.x += direction * speed * delta
|
||||
player.velocity.x = clamp(player.velocity.x, -maxSpeed, maxSpeed)
|
||||
#player.velocity.x = move_toward(player.velocity.x, maxSpeed, 100 * delta)
|
||||
|
||||
if direction != 0:
|
||||
animatedSprite2D.flip_h = false if direction > 0 else true
|
||||
|
||||
Reference in New Issue
Block a user