Fixed healing stations

This commit is contained in:
Marco 2025-03-05 09:44:03 +01:00
commit f1ddee18c4
9 changed files with 84 additions and 30 deletions

View file

@ -74,8 +74,8 @@ animation = &"Default"
z_index = 2
emitting = false
amount = 50
process_material = SubResource("ParticleProcessMaterial_we5sc")
lifetime = 0.8
process_material = SubResource("ParticleProcessMaterial_we5sc")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="body_exited" from="." to="." method="_on_body_exited"]
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
[connection signal="area_exited" from="." to="." method="_on_area_Exited"]

View file

@ -252,11 +252,13 @@ shape = SubResource("CircleShape2D_7n10g")
[node name="Error" type="AudioStreamPlayer2D" parent="InteractionProvider"]
stream = ExtResource("24_5tmtw")
[node name="InteractionController" type="Area2D" parent="."]
[node name="InteractionController" type="Area2D" parent="." node_paths=PackedStringArray("Health", "Shield")]
visible = false
collision_layer = 2
collision_mask = 0
script = ExtResource("27_vwjki")
Health = NodePath("../DamageReceiver/HealthProvider")
Shield = NodePath("../DamageReceiver/ShieldProvider")
[node name="CollisionShape2D2" type="CollisionShape2D" parent="InteractionController"]
shape = SubResource("CircleShape2D_g3wua")