fx: input extracted to own node

This commit is contained in:
2026-03-15 17:08:40 +01:00
parent 0af538ff3f
commit f4e5d13cf8
5 changed files with 41 additions and 25 deletions

View File

@@ -4,6 +4,7 @@
[ext_resource type="Texture2D" uid="uid://du1lb4nr47kvl" path="res://molecular/assets/player-sprite-attacking.png" id="2_rq1v6"]
[ext_resource type="Texture2D" uid="uid://bsd1qtw50esai" path="res://molecular/assets/player-sprite-attacking2.png" id="3_xiwfn"]
[ext_resource type="Texture2D" uid="uid://cd0iv6hsi3fad" path="res://molecular/assets/player-sprite.png" id="4_rq1v6"]
[ext_resource type="Script" uid="uid://dehus7ao5xv2l" path="res://molecular/player_input.gd" id="5_xiwfn"]
[sub_resource type="SpriteFrames" id="SpriteFrames_onrkg"]
animations = [{
@@ -49,6 +50,9 @@ animation = &"attacking"
rotation = -1.5732701
shape = SubResource("CapsuleShape2D_4flbx")
[node name="Input" type="Node" parent="." unique_id=2043215647]
script = ExtResource("5_xiwfn")
[node name="AttackArea" type="Area2D" parent="." unique_id=187975387]
position = Vector2(0, 56)
rotation = -1.5732701