[gd_scene load_steps=9 format=3 uid="uid://dpltbyp8ku2mi"] [ext_resource type="Script" uid="uid://cuaxw7eh73a1i" path="res://scripts/slime.gd" id="1_p2gj0"] [ext_resource type="Texture2D" uid="uid://dwwlva8pi3da2" path="res://assets/graphics/enemies/slime_purple (1).png" id="2_n6pvg"] [sub_resource type="CircleShape2D" id="CircleShape2D_pjw23"] [sub_resource type="AtlasTexture" id="AtlasTexture_2npkn"] atlas = ExtResource("2_n6pvg") region = Rect2(0, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_fd6lc"] atlas = ExtResource("2_n6pvg") region = Rect2(24, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_gstla"] atlas = ExtResource("2_n6pvg") region = Rect2(48, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_v5wyi"] atlas = ExtResource("2_n6pvg") region = Rect2(72, 24, 24, 24) [sub_resource type="SpriteFrames" id="SpriteFrames_0l8pv"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_2npkn") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_fd6lc") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_gstla") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_v5wyi") }], "loop": true, "name": &"default", "speed": 12.0 }] [node name="Slime" type="Area2D"] script = ExtResource("1_p2gj0") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] scale = Vector2(0.9, 0.9) shape = SubResource("CircleShape2D_pjw23") debug_color = Color(0.932998, 0.222862, 0.34393, 0.42) [node name="SlimeGraphic" type="AnimatedSprite2D" parent="."] texture_filter = 1 position = Vector2(0, -3) sprite_frames = SubResource("SpriteFrames_0l8pv") autoplay = "default" frame_progress = 0.665587 [node name="RightCast" type="RayCast2D" parent="."] target_position = Vector2(13, 0) [node name="LeftCast" type="RayCast2D" parent="."] target_position = Vector2(-14, 0) [node name="LeftDownCast" type="RayCast2D" parent="."] position = Vector2(-8, 0) target_position = Vector2(0, 10) [node name="RightDownCast" type="RayCast2D" parent="."] position = Vector2(8, 0) target_position = Vector2(0, 10) [connection signal="body_entered" from="." to="." method="_on_body_entered"]