[gd_scene load_steps=9 format=3 uid="uid://qk8sby4wmfnn"] [ext_resource type="Script" uid="uid://b0naxk1huoh1b" path="res://scripts/slime.gd" id="1_p2gj0"] [ext_resource type="Texture2D" uid="uid://dqyyvekkdnc4" path="res://assets/graphics/enemies/slime_green (1).png" id="2_n6pvg"] [sub_resource type="AtlasTexture" id="AtlasTexture_pjw23"] atlas = ExtResource("2_n6pvg") region = Rect2(0, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_2npkn"] atlas = ExtResource("2_n6pvg") region = Rect2(24, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_fd6lc"] atlas = ExtResource("2_n6pvg") region = Rect2(48, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_gstla"] atlas = ExtResource("2_n6pvg") region = Rect2(72, 24, 24, 24) [sub_resource type="SpriteFrames" id="SpriteFrames_v5wyi"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_pjw23") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_2npkn") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_fd6lc") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_gstla") }], "loop": true, "name": &"idle", "speed": 12.0 }] [sub_resource type="RectangleShape2D" id="RectangleShape2D_0l8pv"] size = Vector2(14, 16) [node name="Slime" type="Area2D"] script = ExtResource("1_p2gj0") [node name="slimeGraphic" type="AnimatedSprite2D" parent="."] texture_filter = 1 sprite_frames = SubResource("SpriteFrames_v5wyi") animation = &"idle" autoplay = "idle" frame_progress = 0.916706 [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2(0, 4) shape = SubResource("RectangleShape2D_0l8pv") [node name="RightSideCast" type="RayCast2D" parent="."] target_position = Vector2(10, 0) [node name="LeftSideCast" type="RayCast2D" parent="."] target_position = Vector2(-10, 0) [node name="LeftDownCast" type="RayCast2D" parent="."] position = Vector2(-7, 0) target_position = Vector2(0, 14) [node name="RightDownCast" type="RayCast2D" parent="."] position = Vector2(7, 0) target_position = Vector2(0, 14) [connection signal="body_entered" from="." to="." method="_on_body_entered"]