frab moves!

This commit is contained in:
Haze Weathers 2025-11-01 21:29:31 -06:00
parent 12cce7f4ae
commit f933ad85f1
4 changed files with 57 additions and 18 deletions

View file

@ -1,7 +1,22 @@
[gd_scene load_steps=6 format=3 uid="uid://o273v7ll6m0h"]
[ext_resource type="Texture2D" uid="uid://orvwbw12311i" path="res://assets/graphics/frab.png" id="1_px4ud"]
[ext_resource type="Script" uid="uid://d2k5tlvpqokqr" path="res://objects/enemies/enemy.gd" id="1_r8e57"]
[ext_resource type="Script" uid="uid://botgy5lnepotc" path="res://objects/enemies/frab/frab.gd" id="1_r8e57"]
[sub_resource type="Animation" id="Animation_lvd4h"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:flip_h")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
[sub_resource type="Animation" id="Animation_r8e57"]
resource_name = "flab"
@ -21,21 +36,6 @@ tracks/0/keys = {
"values": [false, true]
}
[sub_resource type="Animation" id="Animation_lvd4h"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:flip_h")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_qb3yn"]
_data = {
&"RESET": SubResource("Animation_lvd4h"),
@ -44,6 +44,9 @@ _data = {
[node name="Frab" type="Node2D"]
script = ExtResource("1_r8e57")
wander_range = 100.0
max_home_distance = 200.0
move_speed = 100.0
metadata/_custom_type_script = "uid://d2k5tlvpqokqr"
[node name="Sprite2D" type="Sprite2D" parent="."]