diff --git a/AI/HurtBox.tscn b/AI/HurtBox.tscn index b7587d5..1b8dad0 100644 --- a/AI/HurtBox.tscn +++ b/AI/HurtBox.tscn @@ -1,5 +1,9 @@ -[gd_scene format=2] +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://AI/HurtBox.gd" type="Script" id=1] [node name="HurtBox" type="Area2D"] +script = ExtResource( 1 ) [node name="CollisionShape2D" type="CollisionShape2D" parent="."] +[connection signal="area_entered" from="." to="." method="_on_HurtBox_area_entered"] diff --git a/World/Grass.tscn b/World/Grass.tscn index 72b8997..5c6f762 100644 --- a/World/Grass.tscn +++ b/World/Grass.tscn @@ -18,6 +18,7 @@ offset = Vector2( -8, -8 ) [node name="HurtBox" parent="." instance=ExtResource( 3 )] collision_layer = 8 collision_mask = 2147483648 +hit_effect = false [node name="CollisionShape2D" parent="HurtBox" index="0"] position = Vector2( 8, 8 )