diff options
author | Indrajith K L | 2022-04-14 15:38:09 +0530 |
---|---|---|
committer | Indrajith K L | 2022-04-14 15:38:09 +0530 |
commit | 8bf932bf0b2184c1dc11241bb9c84d6c4e420293 (patch) | |
tree | 767e73ae7d73e591e313822a34c914754a9ba831 /collectables | |
parent | fc44ae1243e21179d759df3b947fc55ca0425534 (diff) | |
download | gamedevjs-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.gd | 2 |
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() |