[gd_scene load_steps=9 format=3 uid="uid://dy8nl43lpcmka"] [ext_resource type="Script" path="res://Sripts/slime.gd" id="1_2xgu3"] [ext_resource type="Texture2D" uid="uid://lpbq4n22w1ig" path="res://Assets/Graphics/Enemies/slime_green.png" id="1_6sd47"] [sub_resource type="AtlasTexture" id="AtlasTexture_feiyc"] atlas = ExtResource("1_6sd47") region = Rect2(0, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_jvyy4"] atlas = ExtResource("1_6sd47") region = Rect2(24, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_g8dot"] atlas = ExtResource("1_6sd47") region = Rect2(48, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_dc6ki"] atlas = ExtResource("1_6sd47") region = Rect2(72, 24, 24, 24) [sub_resource type="SpriteFrames" id="SpriteFrames_kycl6"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_feiyc") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_jvyy4") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_g8dot") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_dc6ki") }], "loop": true, "name": &"idle", "speed": 12.0 }] [sub_resource type="RectangleShape2D" id="RectangleShape2D_ujgd7"] size = Vector2(15, 12.5) [node name="Slime" type="Area2D"] script = ExtResource("1_2xgu3") [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] texture_filter = 1 position = Vector2(0, -2) scale = Vector2(1.2, 1.2) sprite_frames = SubResource("SpriteFrames_kycl6") animation = &"idle" autoplay = "idle" [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2(0, 5.5) scale = Vector2(1.2, 1.2) shape = SubResource("RectangleShape2D_ujgd7") [node name="CastRight" type="RayCast2D" parent="."] target_position = Vector2(15, 0) [node name="CastLeft" type="RayCast2D" parent="."] target_position = Vector2(-15, 0) [node name="CastFloorRight" type="RayCast2D" parent="."] position = Vector2(9, 0) target_position = Vector2(0, 17) [node name="CastFloorLeft" type="RayCast2D" parent="."] position = Vector2(-9, 0) target_position = Vector2(0, 17) [connection signal="body_entered" from="." to="." method="_on_body_entered"]