another minute another player snapp change
This commit is contained in:
parent
7d21e86f01
commit
4264d26e4a
1 changed files with 3 additions and 1 deletions
|
@ -101,7 +101,9 @@ func _physics_process(delta):
|
|||
position.y += 1
|
||||
velocity.y = 0
|
||||
#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)
|
||||
#Moon Jump
|
||||
if Debug.moon_jump == true: can_doublejump = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue