Feat/14 movement overhaul #20
@@ -91,7 +91,7 @@ func _physics_process(delta: float) -> void:
|
|||||||
var current_h_speed = Vector2(velocity.x, velocity.z).length()
|
var current_h_speed = Vector2(velocity.x, velocity.z).length()
|
||||||
visual_node.update_state("ground", current_h_speed)
|
visual_node.update_state("ground", current_h_speed)
|
||||||
|
|
||||||
func take_damage(amount: float, hit_position: Vector3, source: Node = null, impulse: Vector3 = Vector3.ZERO) -> void:
|
func take_damage(amount: float, hit_position: Vector3, source: Node = null, _impulse: Vector3 = Vector3.ZERO) -> void:
|
||||||
if is_dead:
|
if is_dead:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user