actionrpg-heartbeast/ActionRPG-HeartBeast/Effects/HitEffect.tscn
2025-01-18 12:02:23 -05:00

40 lines
1.1 KiB
Plaintext

[gd_scene load_steps=7 format=3 uid="uid://bojbqk7e5s22v"]
[ext_resource type="Script" path="res://Effects/Effect.gd" id="1"]
[ext_resource type="Texture2D" uid="uid://bah6dkm2id" path="res://Effects/HitEffect.png" id="2"]
[ext_resource type="AudioStream" uid="uid://ce47h2cdpm1l6" path="res://Music and Sounds/Hit.wav" id="3"]
[sub_resource type="AtlasTexture" id="1"]
atlas = ExtResource("2")
region = Rect2(0, 0, 24, 24)
[sub_resource type="AtlasTexture" id="2"]
atlas = ExtResource("2")
region = Rect2(24, 0, 24, 24)
[sub_resource type="SpriteFrames" id="3"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("1")
}, {
"duration": 1.0,
"texture": SubResource("2")
}],
"loop": false,
"name": &"Animate",
"speed": 10.0
}]
[node name="HitEffect" type="AnimatedSprite2D"]
sprite_frames = SubResource("3")
animation = &"Animate"
offset = Vector2(0, -8)
script = ExtResource("1")
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("3")
autoplay = true
[connection signal="animation_finished" from="." to="." method="_on_animation_finished"]