rudimentary clamber
This commit is contained in:
@@ -17,8 +17,8 @@ func Update(delta):
|
||||
func Physics_Update(delta):
|
||||
if character.is_on_floor():
|
||||
standard_movement(delta)
|
||||
else:
|
||||
Transitioned.emit(self,"in air")
|
||||
|
||||
apply_gravity(delta)
|
||||
|
||||
if Input.is_action_just_pressed("crouch"):
|
||||
if !character.crouch_check.is_colliding():
|
||||
@@ -32,7 +32,7 @@ func Physics_Update(delta):
|
||||
if Input.is_action_just_pressed("jump"):
|
||||
if !character.crouch_check.is_colliding():
|
||||
character.recoil.add_recoil(Vector3(-.2,.03,.03),5,10)
|
||||
character.velocity.y += character.JUMP_VELOCITY
|
||||
standard_jump()
|
||||
transition_out_of_crouch()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user