You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 lines
2.7 KiB

[gd_scene load_steps=9 format=3 uid="uid://blhw157wwm02k"]
[ext_resource type="Script" path="res://DamageLabel.gd" id="1_bkmpf"]
[ext_resource type="Texture2D" uid="uid://lrlnbd1xfm00" path="res://assets/Sprites/DamageBubble.png" id="1_hhymi"]
[sub_resource type="Animation" id="Animation_su23q"]
resource_name = "Pop-Up"
length = 0.3
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 1,
"values": [0, 1, 2]
}
[sub_resource type="Animation" id="Animation_dlbp2"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0]
}
[sub_resource type="Animation" id="Animation_a8shb"]
resource_name = "Show"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
"update": 1,
"values": [2, 2, 2, 2, 2]
}
[sub_resource type="Animation" id="Animation_o4lh5"]
resource_name = "Fade-Out"
length = 0.3
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 1,
"values": [2, 1, 0]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_iir0v"]
_data = {
"Fade-Out": SubResource("Animation_o4lh5"),
"Pop-Up": SubResource("Animation_su23q"),
"RESET": SubResource("Animation_dlbp2"),
"Show": SubResource("Animation_a8shb")
}
[sub_resource type="LabelSettings" id="LabelSettings_ofpea"]
font_color = Color(0.882353, 0, 0.0431373, 1)
[node name="DamageLabel" type="Node2D"]
script = ExtResource("1_bkmpf")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("1_hhymi")
hframes = 3
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_iir0v")
}
[node name="Label" type="Label" parent="."]
offset_left = -19.0
offset_top = -12.0
offset_right = 21.0
offset_bottom = 14.0
text = "99"
label_settings = SubResource("LabelSettings_ofpea")
horizontal_alignment = 1
vertical_alignment = 1
[connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_animation_finished"]