[gd_scene load_steps=9 format=3 uid="uid://bp681r4m6n8a6"] [ext_resource type="Script" uid="uid://da1ki5gcro7rb" path="res://scripts/slime.gd" id="1_swwnm"] [ext_resource type="Texture2D" uid="uid://ff4jab7uxcbx" path="res://Assets/Graphics/Enemies/slime_purple.png" id="2_aiwxb"] [sub_resource type="CircleShape2D" id="CircleShape2D_paq7w"] [sub_resource type="AtlasTexture" id="AtlasTexture_f4si1"] atlas = ExtResource("2_aiwxb") region = Rect2(0, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_5gljc"] atlas = ExtResource("2_aiwxb") region = Rect2(24, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_vblni"] atlas = ExtResource("2_aiwxb") region = Rect2(48, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_e388w"] atlas = ExtResource("2_aiwxb") region = Rect2(72, 24, 24, 24) [sub_resource type="SpriteFrames" id="SpriteFrames_r4o34"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_f4si1") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_5gljc") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_vblni") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_e388w") }], "loop": true, "name": &"default", "speed": 6.0 }] [node name="Slime" type="Area2D"] script = ExtResource("1_swwnm") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] shape = SubResource("CircleShape2D_paq7w") debug_color = Color(0.87451, 0.266667, 0.0705882, 0.419608) [node name="SlimeGraphic" type="AnimatedSprite2D" parent="."] texture_filter = 1 position = Vector2(0, -4) scale = Vector2(1.20833, 1.1875) sprite_frames = SubResource("SpriteFrames_r4o34") autoplay = "default" frame = 2 frame_progress = 0.971417 [node name="right cast" type="RayCast2D" parent="."] target_position = Vector2(14, 0) [node name="left cast" type="RayCast2D" parent="."] target_position = Vector2(-14, 0) [node name="left down cast" type="RayCast2D" parent="."] position = Vector2(-8, -3) target_position = Vector2(0, 13) [node name="right down cast" type="RayCast2D" parent="."] position = Vector2(8, -3) target_position = Vector2(0, 13) [connection signal="body_entered" from="." to="." method="_on_body_entered"]