Provisório

This commit is contained in:
2026-06-03 12:30:55 -03:00
parent 6f690a4e51
commit 8e09fdbd00
8 changed files with 187 additions and 29 deletions
+6 -5
View File
@@ -8,9 +8,6 @@ var Executed = false
@onready var animator = get_node("gobot_new/AnimationPlayer")
@onready var hud_container: HBoxContainer = $hud/Hud_container
@export var view : Node3D
@export var health := 3
@export var foot_damage:= 1
@@ -95,8 +92,7 @@ func knockback(impact_point: Vector3, force: Vector3) -> void:
velocity = force.limit_length(9.0)
func _on_hurtbox_body_entered(body):
#if health == 0:
#is_dead = true
var body_collision = (body.global_position - global_position)
var force = -body_collision
@@ -123,3 +119,8 @@ func verify_life():
if health == 0:
is_dead = true
func _on_foot_body_entered(body: Node3D) -> void: #foot
print(body.name)