[gd_scene load_steps=9 format=3 uid="uid://bts74sqcd7k7h"] [ext_resource type="Texture2D" uid="uid://wgf50h6hbeib" path="res://assets/graphics/enemies/slime_green(1).png" id="1_02r3y"] [ext_resource type="Script" uid="uid://bcxorf6dwnwbv" path="res://scripts/slimer.gd" id="1_4oill"] [sub_resource type="AtlasTexture" id="AtlasTexture_4oill"] atlas = ExtResource("1_02r3y") region = Rect2(0, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_8ecsm"] atlas = ExtResource("1_02r3y") region = Rect2(24, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_swrbd"] atlas = ExtResource("1_02r3y") region = Rect2(48, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_slvpl"] atlas = ExtResource("1_02r3y") region = Rect2(72, 24, 24, 24) [sub_resource type="SpriteFrames" id="SpriteFrames_negjt"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_4oill") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_8ecsm") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_swrbd") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_slvpl") }], "loop": true, "name": &"idle", "speed": 6.0 }] [sub_resource type="RectangleShape2D" id="RectangleShape2D_02r3y"] size = Vector2(14, 15) [node name="Slimer" type="Area2D"] collision_layer = 16 collision_mask = 15 script = ExtResource("1_4oill") [node name="SlimeSprite" type="AnimatedSprite2D" parent="."] sprite_frames = SubResource("SpriteFrames_negjt") animation = &"idle" autoplay = "idle" frame_progress = 0.901815 [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2(0, 4.5) shape = SubResource("RectangleShape2D_02r3y") [node name="RightCast" type="RayCast2D" parent="."] position = Vector2(1, 0) target_position = Vector2(20, 0) collision_mask = 3 [node name="LeftCast" type="RayCast2D" parent="."] position = Vector2(1, 0) target_position = Vector2(-20, 0) collision_mask = 3 [node name="RightDownCast" type="RayCast2D" parent="."] position = Vector2(8, 0) target_position = Vector2(0, 20) collision_mask = 3 [node name="LeftDownCast" type="RayCast2D" parent="."] position = Vector2(-6, 0) target_position = Vector2(0, 20) collision_mask = 3 [connection signal="body_entered" from="." to="." method="_on_body_entered"]