From 8d2c0248e12fca1472fb2b1008b1c7572dd32aa5 Mon Sep 17 00:00:00 2001 From: Haze Weathers Date: Tue, 16 May 2023 23:25:19 -0400 Subject: [PATCH] fix collectibles not working --- objects/collectibles/shard.gd | 2 +- objects/collectibles/star.gd | 2 +- objects/collectibles/star.tscn | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/objects/collectibles/shard.gd b/objects/collectibles/shard.gd index 5572e9a..294d384 100644 --- a/objects/collectibles/shard.gd +++ b/objects/collectibles/shard.gd @@ -8,7 +8,7 @@ func _ready(): func _on_Area2D_body_entered(body): #Collect - if body.is_in_group("player_hitbox"): + if body.is_in_group("player"): Audio.play_shard_sound() Game.score += 500 Game.shards += value diff --git a/objects/collectibles/star.gd b/objects/collectibles/star.gd index c276a85..e075c98 100644 --- a/objects/collectibles/star.gd +++ b/objects/collectibles/star.gd @@ -28,7 +28,7 @@ func _set_color(value): func _on_Area2D_body_entered(body): #Collect - if body.is_in_group("player_hitbox"): + if body.is_in_group("player"): Audio.play_sound(Audio.a_star,Audio.ac_collectible) Game.score += 100 Game.stars[color] = true diff --git a/objects/collectibles/star.tscn b/objects/collectibles/star.tscn index b252050..0834655 100644 --- a/objects/collectibles/star.tscn +++ b/objects/collectibles/star.tscn @@ -54,7 +54,7 @@ script = ExtResource( 3 ) material = SubResource( 10 ) position = Vector2( -1, -3 ) frames = SubResource( 8 ) -frame = 3 +frame = 2 playing = true centered = false