[gd_scene load_steps=9 format=3 uid="uid://bfex451nb78lt"] [ext_resource type="Script" path="res://scripts/badguy.gd" id="1_vier3"] [ext_resource type="Texture2D" uid="uid://cshrbm2roxdfc" path="res://assets/graphics/enemies/slime_green.png" id="1_x0bq5"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_1yklg"] size = Vector2(12.6615, 13.5659) [sub_resource type="AtlasTexture" id="AtlasTexture_nlkx5"] atlas = ExtResource("1_x0bq5") region = Rect2(0, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_imbiq"] atlas = ExtResource("1_x0bq5") region = Rect2(24, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_46pxa"] atlas = ExtResource("1_x0bq5") region = Rect2(48, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_xkbu6"] atlas = ExtResource("1_x0bq5") region = Rect2(72, 24, 24, 24) [sub_resource type="SpriteFrames" id="SpriteFrames_yljrg"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_nlkx5") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_imbiq") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_46pxa") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_xkbu6") }], "loop": true, "name": &"idle", "speed": 12.0 }] [node name="Area2D" type="Area2D"] script = ExtResource("1_vier3") metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2(5.96046e-08, -0.5) scale = Vector2(1.10571, 1.10571) shape = SubResource("RectangleShape2D_1yklg") [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] texture_filter = 1 position = Vector2(0, -5) sprite_frames = SubResource("SpriteFrames_yljrg") animation = &"idle" autoplay = "idle" frame = 2 frame_progress = 0.395087 [node name="CastRight" type="RayCast2D" parent="."] target_position = Vector2(13, 0) [node name="CastLeft" type="RayCast2D" parent="."] target_position = Vector2(-13, 0) [node name="CastFloorRight" type="RayCast2D" parent="."] position = Vector2(7, 1) target_position = Vector2(0, 8) [node name="CastFloorLeft" type="RayCast2D" parent="."] position = Vector2(-7, 1) target_position = Vector2(0, 8) [connection signal="body_entered" from="." to="." method="_on_body_entered"]