From 0b00c9ff4ab97eedfdf7734fd55ef56afb2c3bf1 Mon Sep 17 00:00:00 2001 From: Haze Weathers Date: Tue, 12 Mar 2024 17:49:25 -0400 Subject: [PATCH] fix player hovering 1px above vertical moving platform --- objects/player/player.gd | 1 + 1 file changed, 1 insertion(+) diff --git a/objects/player/player.gd b/objects/player/player.gd index 4edd0e1..617872a 100644 --- a/objects/player/player.gd +++ b/objects/player/player.gd @@ -487,6 +487,7 @@ func _process_gravity(delta: float) -> void: ## called after all other physics things func _process_movement(delta: float) -> void: # apply velocity and react to collisions + velocity.y += get_floor_velocity().y velocity = move_and_slide_with_snap(velocity, snap, Vector2.UP) # deal with that STUPID landing exactly on corner bug