make collectibles always use full hitbox

This commit is contained in:
Haze Weathers 2023-05-16 22:58:14 -04:00
parent e4cc684603
commit ca947c2f09
9 changed files with 26 additions and 17 deletions

View file

@ -6,9 +6,9 @@ export var number = 0 #Used for saving which specific shards collected
func _ready():
$AnimationPlayer.play("glow")
func _on_Area2D_area_entered(area):
func _on_Area2D_body_entered(body):
#Collect
if area.is_in_group("player_hitbox"):
if body.is_in_group("player_hitbox"):
Audio.play_shard_sound()
Game.score += 500
Game.shards += value