[gd_scene load_steps=9 format=3 uid="uid://b07px1qf5obql"] [ext_resource type="Texture2D" uid="uid://dl8k7bq5pkuvk" path="res://graphics/enemies/slime_purple.png" id="1_01o8e"] [ext_resource type="Script" path="res://scripts/enemy.gd" id="1_c0t6u"] [sub_resource type="AtlasTexture" id="AtlasTexture_afgjr"] atlas = ExtResource("1_01o8e") region = Rect2(0, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_jpmuv"] atlas = ExtResource("1_01o8e") region = Rect2(24, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_mdgjq"] atlas = ExtResource("1_01o8e") region = Rect2(48, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_ib0iy"] atlas = ExtResource("1_01o8e") region = Rect2(72, 24, 24, 24) [sub_resource type="SpriteFrames" id="SpriteFrames_cmpmq"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_afgjr") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_jpmuv") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_mdgjq") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_ib0iy") }], "loop": true, "name": &"chase", "speed": 8.0 }] [sub_resource type="RectangleShape2D" id="RectangleShape2D_5m2pq"] size = Vector2(14, 15) [node name="SlimeEnemy" type="Area2D" groups=["sprite"]] script = ExtResource("1_c0t6u") metadata/_edit_group_ = true [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] texture_filter = 1 sprite_frames = SubResource("SpriteFrames_cmpmq") animation = &"chase" autoplay = "chase" frame = 1 frame_progress = 0.134127 [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2(0, 4.5) shape = SubResource("RectangleShape2D_5m2pq") [node name="RightCast" type="RayCast2D" parent="."] target_position = Vector2(13, 0) [node name="LeftCast" type="RayCast2D" parent="."] target_position = Vector2(-13, 0) [node name="RightFloorCast" type="RayCast2D" parent="."] position = Vector2(7, 0) target_position = Vector2(0, 18) [node name="LeftFloorCast" type="RayCast2D" parent="."] position = Vector2(-7, 0) target_position = Vector2(0, 18) [connection signal="body_entered" from="." to="." method="_on_body_entered"]