fix player snap length, SG could step down whole tiles :3

This commit is contained in:
Haze Weathers 2023-03-24 22:17:41 -04:00
parent 659e812189
commit 0fd1d894c0

View file

@ -101,7 +101,7 @@ 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 14.0) var snap = Vector2(0.0, 0.0 if velocity.y < 0.0 else 2.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