provisorio 2

This commit is contained in:
2026-06-13 00:51:57 -03:00
parent 8e09fdbd00
commit fc3d329338
4 changed files with 27 additions and 26 deletions
+1
View File
@@ -87,6 +87,7 @@ func jump(_delta):
if gravity > 0 and is_on_floor():
gravity = 0
@warning_ignore("unused_parameter")
func knockback(impact_point: Vector3, force: Vector3) -> void:
force.y = abs(force.y)
velocity = force.limit_length(9.0)
+6 -10
View File
@@ -2,14 +2,10 @@ extends MeshInstance3D
@export var damage_trap := 1
var Execute:= false
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
func _on_area_3d_body_entered(body: Node3D) -> void:
while Execute ==false:
body.damage(damage_trap)
Execute = true
await get_tree().create_timer(1.0).timeout
Execute = false
func _on_area_3d_body_entered(body: Node3D) -> void:
while Execute == false:
body.damage(damage_trap)
Execute = true
await get_tree().create_timer(1.0).timeout
Execute = false