[gd_scene load_steps=9 format=3 uid="uid://dn48fh70b6v00"] [ext_resource type="Texture2D" uid="uid://cdlbhjm5t1hwu" path="res://assets/Graphics/enemies/slime_green.png" id="1_371uh"] [ext_resource type="Script" uid="uid://dunof2t5itkpl" path="res://scripts/slime.gd" id="1_p2gj0"] [sub_resource type="AtlasTexture" id="AtlasTexture_p2gj0"] atlas = ExtResource("1_371uh") region = Rect2(0, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_n6pvg"] atlas = ExtResource("1_371uh") region = Rect2(24, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_pjw23"] atlas = ExtResource("1_371uh") region = Rect2(48, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_2npkn"] atlas = ExtResource("1_371uh") region = Rect2(72, 24, 24, 24) [sub_resource type="SpriteFrames" id="SpriteFrames_fd6lc"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_p2gj0") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_n6pvg") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_pjw23") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_2npkn") }], "loop": true, "name": &"idle", "speed": 12.0 }] [sub_resource type="RectangleShape2D" id="RectangleShape2D_gstla"] size = Vector2(14, 15) [node name="Slime" type="Area2D"] script = ExtResource("1_p2gj0") metadata/_edit_group_ = true [node name="slimeGraphic" type="AnimatedSprite2D" parent="."] texture_filter = 1 sprite_frames = SubResource("SpriteFrames_fd6lc") animation = &"idle" autoplay = "idle" frame_progress = 0.596317 [node name="RightSideCast" type="RayCast2D" parent="slimeGraphic"] target_position = Vector2(13, 0) [node name="LeftSideCast" type="RayCast2D" parent="slimeGraphic"] target_position = Vector2(-13, 0) [node name="Left DownCast" type="RayCast2D" parent="slimeGraphic"] position = Vector2(-7, 0) target_position = Vector2(0, 18) [node name="Right DownCast" type="RayCast2D" parent="slimeGraphic"] position = Vector2(7, 0) target_position = Vector2(0, 18) [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2(0, 4.5) shape = SubResource("RectangleShape2D_gstla") [connection signal="body_entered" from="." to="." method="_on_body_entered"]