From 07f40806be7c80190ea072ec2f2f44aec3573720 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 28 Apr 2024 17:12:41 +0200 Subject: [PATCH] Move Sprite outside of the `StoneArea` --- entities/sacrifice_stone.tscn | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/entities/sacrifice_stone.tscn b/entities/sacrifice_stone.tscn index 8bbbab4..b6a6079 100644 --- a/entities/sacrifice_stone.tscn +++ b/entities/sacrifice_stone.tscn @@ -11,6 +11,11 @@ radius = 4.0 [node name="SacrificeStone" type="Node2D"] script = ExtResource("1_sgl1t") +[node name="Sprite" type="Sprite2D" parent="."] +position = Vector2(0, 32) +scale = Vector2(2, 2) +texture = ExtResource("2_rbklw") + [node name="StoneArea" type="Area2D" parent="."] collision_layer = 8 collision_mask = 24 @@ -27,11 +32,6 @@ diet = &"Trap" [node name="SacrificeTracker" parent="StoneArea" instance=ExtResource("2_6m7pn")] collision_mask = 56 -[node name="Sprite" type="Sprite2D" parent="StoneArea/SacrificeTracker"] -position = Vector2(0, 32) -scale = Vector2(2, 2) -texture = ExtResource("2_rbklw") - [node name="Shape" type="CollisionShape2D" parent="StoneArea/SacrificeTracker"] shape = SubResource("CircleShape2D_yv6hf") one_way_collision_margin = 27.5