[gd_scene load_steps=11 format=2] [ext_resource path="res://sprites/playermelee.png" type="Texture" id=1] [ext_resource path="res://PlayerAttack.gd" type="Script" id=2] [ext_resource path="res://sfx/melee_atk.ogg" type="AudioStream" id=3] [sub_resource type="AtlasTexture" id=1] atlas = ExtResource( 1 ) region = Rect2( 0, 0, 9, 28 ) [sub_resource type="AtlasTexture" id=2] atlas = ExtResource( 1 ) region = Rect2( 9, 0, 9, 28 ) [sub_resource type="AtlasTexture" id=3] atlas = ExtResource( 1 ) region = Rect2( 18, 0, 9, 28 ) [sub_resource type="AtlasTexture" id=4] atlas = ExtResource( 1 ) region = Rect2( 27, 0, 9, 28 ) [sub_resource type="AtlasTexture" id=5] atlas = ExtResource( 1 ) region = Rect2( 36, 0, 9, 28 ) [sub_resource type="SpriteFrames" id=6] animations = [ { "frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ) ], "loop": true, "name": "default", "speed": 20.0 } ] [sub_resource type="RectangleShape2D" id=7] extents = Vector2( 5.5, 15 ) [node name="PlayerAttack" type="Area2D"] script = ExtResource( 2 ) [node name="AnimatedSprite" type="AnimatedSprite" parent="."] frames = SubResource( 6 ) flip_h = true flip_v = true [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2( 0.5, 0 ) shape = SubResource( 7 ) [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] stream = ExtResource( 3 ) volume_db = -1.564 [connection signal="body_entered" from="." to="." method="_on_PlayerAttack_body_entered"] [connection signal="animation_finished" from="AnimatedSprite" to="." method="_on_AnimatedSprite_animation_finished"]