-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLightFlare.tscn
34 lines (29 loc) · 1 KB
/
LightFlare.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[gd_scene load_steps=4 format=2]
[ext_resource path="res://Arts/Cercle.png" type="Texture" id=1]
[ext_resource path="res://testScenes/LightFlare.gd" type="Script" id=2]
[sub_resource type="Animation" id=1]
resource_name = "flash"
length = 2.0
tracks/0/type = "value"
tracks/0/path = NodePath(".:energy")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1, 1.9 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 0,
"values": [ 0.01, 1.2, 0.01 ]
}
[node name="LightFlare" type="Light2D"]
scale = Vector2( 2, 2 )
texture = ExtResource( 1 )
energy = 0.01
script = ExtResource( 2 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/flash = SubResource( 1 )
[node name="Timer" type="Timer" parent="."]
one_shot = true
[connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_AnimationPlayer_animation_finished"]
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]