[gd_scene load_steps=7 format=2] [ext_resource path="res://ai/Script/Skeleton Enemy.gd" type="Script" id=1] [ext_resource path="res://Music and Fonts(Misc.)/Skeleton Hit.tres" type="Animation" id=2] [ext_resource path="res://art/Skeleton.png" type="Texture" id=3] [sub_resource type="RectangleShape2D" id=1] extents = Vector2( 5, 7 ) [sub_resource type="Animation" id=2] resource_name = "Skeleton Jump" length = 0.8 loop = true tracks/0/type = "value" tracks/0/path = NodePath("Skeleton:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7 ), "transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1, 1 ), "update": 1, "values": [ 0, 1, 2, 3, 4, 5, 6, 7 ] } [sub_resource type="RectangleShape2D" id=3] extents = Vector2( 6, 2 ) [node name="Skeleton Enemy" type="KinematicBody2D"] collision_layer = 4 collision_mask = 15 script = ExtResource( 1 ) [node name="CollisionShape2D" type="CollisionShape2D" parent="."] shape = SubResource( 1 ) [node name="RayCast2D" type="RayCast2D" parent="."] enabled = true cast_to = Vector2( -80, 0 ) collision_mask = 3 [node name="RayCast2D2" type="RayCast2D" parent="."] enabled = true cast_to = Vector2( 80, 0 ) collision_mask = 3 [node name="ShootDelay" type="Timer" parent="."] wait_time = 1.239 one_shot = true [node name="Position2D" type="Position2D" parent="."] [node name="Skeleton" type="Sprite" parent="."] position = Vector2( 1, -1 ) texture = ExtResource( 3 ) hframes = 8 [node name="AnimationPlayer" type="AnimationPlayer" parent="."] autoplay = "Skeleton Jump" "anims/Skeleton Jump" = SubResource( 2 ) [node name="AnimationPlayer2" type="AnimationPlayer" parent="."] anims/Hit = ExtResource( 2 ) [node name="Area2D" type="Area2D" parent="."] collision_layer = 4 collision_mask = 7 [node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] position = Vector2( 0, -6 ) shape = SubResource( 3 ) [node name="DamageCD" type="Timer" parent="."] wait_time = 0.35 [connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]