aboutsummaryrefslogtreecommitdiff
path: root/collectables
diff options
context:
space:
mode:
authorIndrajith K L2022-04-14 15:38:09 +0530
committerIndrajith K L2022-04-14 15:38:09 +0530
commit8bf932bf0b2184c1dc11241bb9c84d6c4e420293 (patch)
tree767e73ae7d73e591e313822a34c914754a9ba831 /collectables
parentfc44ae1243e21179d759df3b947fc55ca0425534 (diff)
downloadgamedevjs-jam-8bf932bf0b2184c1dc11241bb9c84d6c4e420293.tar.gz
gamedevjs-jam-8bf932bf0b2184c1dc11241bb9c84d6c4e420293.tar.bz2
gamedevjs-jam-8bf932bf0b2184c1dc11241bb9c84d6c4e420293.zip
Fixes an issue with Apples & Tilemap (lol)
Diffstat (limited to 'collectables')
-rw-r--r--collectables/Apple.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/collectables/Apple.gd b/collectables/Apple.gd
index 909eaf2..e95ef61 100644
--- a/collectables/Apple.gd
+++ b/collectables/Apple.gd
@@ -6,6 +6,6 @@ func _ready():
func _on_Area2D_body_entered(body):
- if body.entity_type=="PLAYER":
+ if (body.name=="Player"):
body.health += health
queue_free()