[gd_scene load_steps=9 format=3 uid="uid://chg3b7bwi8e5v"] [ext_resource type="Texture2D" uid="uid://oko77j3h5pvi" path="res://assets/graphics/enemies/slime_purple.png" id="1_gtd16"] [ext_resource type="Script" path="res://scripts/badguy.gd" id="1_oosn7"] [sub_resource type="AtlasTexture" id="AtlasTexture_xartt"] atlas = ExtResource("1_gtd16") region = Rect2(0, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_locj4"] atlas = ExtResource("1_gtd16") region = Rect2(24, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_nwfhl"] atlas = ExtResource("1_gtd16") region = Rect2(48, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_qh0so"] atlas = ExtResource("1_gtd16") region = Rect2(72, 24, 24, 24) [sub_resource type="SpriteFrames" id="SpriteFrames_8s2ow"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_xartt") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_locj4") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_nwfhl") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_qh0so") }], "loop": true, "name": &"idle", "speed": 12.0 }] [sub_resource type="RectangleShape2D" id="RectangleShape2D_fflir"] size = Vector2(16, 15) [node name="Area2D" type="Area2D"] script = ExtResource("1_oosn7") [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] texture_filter = 1 sprite_frames = SubResource("SpriteFrames_8s2ow") animation = &"idle" autoplay = "idle" frame = 2 frame_progress = 0.361157 [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2(0, 4.5) shape = SubResource("RectangleShape2D_fflir") [node name="CastRight" type="RayCast2D" parent="."] target_position = Vector2(14, 0) [node name="CastLeft" type="RayCast2D" parent="."] target_position = Vector2(-14, 0) [node name="CastFloorRight" type="RayCast2D" parent="."] position = Vector2(9, 1) target_position = Vector2(0, 14) [node name="CastFloorLeft" type="RayCast2D" parent="."] position = Vector2(-9, 0) target_position = Vector2(0, 15) [connection signal="body_entered" from="." to="." method="_on_body_entered"]