Wired up boss heart behaviour
This commit is contained in:
parent
bee8cf77f1
commit
a13f274767
7 changed files with 95 additions and 15 deletions
|
|
@ -71,9 +71,10 @@ func _on_area_entered(area: Area2D) -> void:
|
|||
area.hit_detection()
|
||||
|
||||
|
||||
if area.is_in_group("boss"):
|
||||
print("I've shot the boss")
|
||||
queue_free()
|
||||
if area.is_in_group("heart"):
|
||||
print("I've shot the heart!")
|
||||
area.hit_detection()
|
||||
queue_free()
|
||||
|
||||
|
||||
#func bullet_fx():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue