another minute another player snapp change

This commit is contained in:
Haze Weathers 2023-03-24 23:41:08 -04:00
parent 7d21e86f01
commit 4264d26e4a

View file

@ -101,7 +101,9 @@ func _physics_process(delta):
position.y += 1 position.y += 1
velocity.y = 0 velocity.y = 0
#Apply velocity #Apply velocity
var snap = Vector2(0.0, 0.0 if velocity.y < 0.0 else 2.0) var snap = Vector2.ZERO
if velocity.y < 0.0 and current_ladder == null:
snap.y = 1.0
move_and_slide_with_snap(velocity, snap, Vector2.UP, true) move_and_slide_with_snap(velocity, snap, Vector2.UP, true)
#Moon Jump #Moon Jump
if Debug.moon_jump == true: can_doublejump = true if Debug.moon_jump == true: can_doublejump = true