added jump script

This commit is contained in:
derek
2025-06-16 12:01:06 -05:00
parent 38ac1aa76f
commit 7fe59a9ecc
4 changed files with 16 additions and 7 deletions

View File

@@ -12,3 +12,6 @@ var look_target
func standard_movement(delta):
character.velocity.x = lerp(character.velocity.x, character.movement_input().x * move_speed,delta * move_transition_speed)
character.velocity.z = lerp(character.velocity.z, character.movement_input().z * move_speed,delta * move_transition_speed)
func apply_gravity(delta):
character.velocity.y -= 9.8 * 1.25 * delta