Skip to content
Snippets Groups Projects
Commit 1e926de4 authored by Jannik Rosendahl's avatar Jannik Rosendahl
Browse files

fix fireball collision

parent 42069947
No related branches found
Tags
No related merge requests found
...@@ -22,3 +22,7 @@ func _on_Area2D_body_entered(body : Node): ...@@ -22,3 +22,7 @@ func _on_Area2D_body_entered(body : Node):
if body.is_in_group("enemyweapon"): if body.is_in_group("enemyweapon"):
print("blocked") print("blocked")
queue_free() queue_free()
if body.is_class("TileMap"):
queue_free()
#print("collided with " + str(body.name) + " - " + str(body.get_class()) + " - " + str(body.get_groups()))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment