forked from team-sg/hero-mark-2
better slope handling
This commit is contained in:
parent
e02288fb3a
commit
64ff2d38df
2 changed files with 11 additions and 10 deletions
|
@ -101,7 +101,8 @@ func _physics_process(delta):
|
|||
position.y += 1
|
||||
velocity.y = 0
|
||||
#Apply velocity
|
||||
move_and_slide(velocity,Vector2.UP)
|
||||
var snap = Vector2(0.0, 0.0 if velocity.y < 0.0 else 14.0)
|
||||
move_and_slide_with_snap(velocity, snap, Vector2.UP, true)
|
||||
#Moon Jump
|
||||
if Debug.moon_jump == true: can_doublejump = true
|
||||
#2011
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue