stronger gravity faster player
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
extends KinematicBody
|
||||
|
||||
export var speed = 20
|
||||
export var speed = 40
|
||||
|
||||
export var h_acceleration = 6
|
||||
export var air_acceleration = 1
|
||||
export var normal_acceleration = 6
|
||||
export var gravity = 40
|
||||
export var gravity = 100
|
||||
export var jump = 30
|
||||
|
||||
export var mouse_sensitivity = 0.03
|
||||
@@ -63,6 +64,7 @@ func _physics_process(delta):
|
||||
direction -= transform.basis.x
|
||||
elif Input.is_action_pressed("move_right"):
|
||||
direction += transform.basis.x
|
||||
|
||||
|
||||
direction = direction.normalized()
|
||||
h_velocity = h_velocity.linear_interpolate(direction * speed, h_acceleration * delta)
|
||||
|
||||
Reference in New Issue
Block a user