[gd_scene format=3 uid="uid://ctfxiipsy88op"] [ext_resource type="Script" uid="uid://bd6j515foi0bj" path="res://scripts/slimy.gd" id="1_m2evq"] [ext_resource type="Texture2D" uid="uid://ct2w85dun0kjq" path="res://assets/graphics/enemies/slime_purple.png" id="1_pngbj"] [sub_resource type="AtlasTexture" id="AtlasTexture_m2evq"] atlas = ExtResource("1_pngbj") region = Rect2(0, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_v6kx6"] atlas = ExtResource("1_pngbj") region = Rect2(24, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_xi873"] atlas = ExtResource("1_pngbj") region = Rect2(48, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_eyx2s"] atlas = ExtResource("1_pngbj") region = Rect2(72, 24, 24, 24) [sub_resource type="SpriteFrames" id="SpriteFrames_jhbdr"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_m2evq") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_v6kx6") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_xi873") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_eyx2s") }], "loop": true, "name": &"idle", "speed": 12.0 }] [sub_resource type="RectangleShape2D" id="RectangleShape2D_pssmh"] size = Vector2(19, 35) [node name="slimy" type="Area2D" unique_id=1550071708] position = Vector2(12, 23) script = ExtResource("1_m2evq") metadata/_edit_group_ = true [node name="slime texture" type="AnimatedSprite2D" parent="." unique_id=618621224] texture_filter = 1 position = Vector2(9.5, 9) scale = Vector2(1.7916666, 1.75) sprite_frames = SubResource("SpriteFrames_jhbdr") animation = &"idle" autoplay = "idle" [node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1805299238] position = Vector2(9.5, 11.5) shape = SubResource("RectangleShape2D_pssmh") [node name="leftdowncast" type="RayCast2D" parent="." unique_id=1676774856] position = Vector2(-2, 21) target_position = Vector2(0, 11) [node name="rightcast" type="RayCast2D" parent="." unique_id=279001476] position = Vector2(18, 14) target_position = Vector2(7, 0) [node name="rightdowncast" type="RayCast2D" parent="." unique_id=822428022] position = Vector2(20, 21) target_position = Vector2(0, 11) [node name="leftcast" type="RayCast2D" parent="." unique_id=1706617986] position = Vector2(0, 14) target_position = Vector2(-7, 0) [connection signal="body_entered" from="." to="." method="_on_body_entered"]