From 185eb7a7fa6cb3856567a54b09a4766e9d9a6141 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 2 Apr 2022 21:24:50 +0200 Subject: [PATCH] :wrench: Make the Fire scene itself a StaticBody2D --- src/Fire.tscn | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Fire.tscn b/src/Fire.tscn index 4d05bf8..46b8a9d 100644 --- a/src/Fire.tscn +++ b/src/Fire.tscn @@ -7,7 +7,7 @@ [sub_resource type="RectangleShape2D" id=1] extents = Vector2( 16, 16 ) -[node name="Fire" type="Node2D"] +[node name="Fire" type="StaticBody2D"] script = ExtResource( 3 ) [node name="Light" type="Light2D" parent="."] @@ -15,10 +15,8 @@ texture = ExtResource( 1 ) texture_scale = 0.5 color = Color( 1, 0.592157, 0.592157, 1 ) -[node name="Body" type="StaticBody2D" parent="."] - -[node name="Shape" type="CollisionShape2D" parent="Body"] -shape = SubResource( 1 ) - [node name="Sprite" type="Sprite" parent="."] texture = ExtResource( 2 ) + +[node name="Shape" type="CollisionShape2D" parent="."] +shape = SubResource( 1 )