fx: prey-predator interactions

This commit is contained in:
djaidjai committed 2026-03-01 14:55:25 +01:00
1 parent f83b290f5c
commit 2b46fd18f7
8 files changed
+15 -16

No files matched your search

@@ -83,12 +83,9 @@ func _on_attack_hit(body: Node2D) -> void:
if body.has_method("handle_damage"):
body.handle_damage(damage, self)
hit_hittable = true
elif body.is_in_group("resources"):
pass
if hit_hittable:
await get_tree().create_timer(0.2).timeout
sprite.play("default")
# TODO: resource handling logic
func _on_invulnerable_cooldown_timeout() -> void:
hasiframes = false
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.