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