fix player snap length, SG could step down whole tiles :3
This commit is contained in:
parent
659e812189
commit
0fd1d894c0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue