FSM Player movement

This commit is contained in:
Maddo 2025-02-28 19:59:36 +01:00
commit c59a480ffd
10 changed files with 131 additions and 36 deletions

View file

@ -0,0 +1,19 @@
[gd_scene load_steps=4 format=3 uid="uid://bwwuqfhsbxg88"]
[ext_resource type="Script" uid="uid://v2f387aad33k" path="res://Scripts/Components/FSM/ActorStateMachine.cs" id="1_3eiqy"]
[ext_resource type="SpriteFrames" uid="uid://bcc5mlwwnkvri" path="res://Resources/Sprites/Fairy.tres" id="2_d4q8l"]
[sub_resource type="CircleShape2D" id="CircleShape2D_5xgmc"]
[node name="FSMEnemy" type="CharacterBody2D"]
script = ExtResource("1_3eiqy")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_5xgmc")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = ExtResource("2_d4q8l")
animation = &"down"
[node name="Idle" type="Node2D" parent="."]