final commit
This commit is contained in:
@@ -21,9 +21,8 @@ func _physics_process(delta: float) -> void:
|
||||
move_and_collide(velocity * delta)
|
||||
|
||||
func _on_area_entered(area: Area2D) -> void:
|
||||
print("yes")
|
||||
|
||||
queue_free()
|
||||
if not area.get_parent().has_meta("dontKillUrselfPlease"):
|
||||
queue_free()
|
||||
|
||||
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
@@ -31,7 +30,7 @@ func _on_body_entered(body: Node2D) -> void:
|
||||
#body.get_node("explode").emitting = true
|
||||
#body.get_node("explode").reparent(body.geat_parent())
|
||||
|
||||
body.health -= dmgtotal
|
||||
body.health -= dmgtotal * player.damage_stack
|
||||
body.knockback = Vector2(velocity.x * 0.5, velocity.y * 0.5)
|
||||
body.hitsfx.play()
|
||||
#AnimationPlayer.new().stop()
|
||||
@@ -47,4 +46,6 @@ func _on_body_entered(body: Node2D) -> void:
|
||||
#player.heal(randi_range(3,5))
|
||||
|
||||
#body.queue_free()
|
||||
|
||||
print(body.name)
|
||||
queue_free()
|
||||
|
||||
Reference in New Issue
Block a user