pegchamp/Effects/FadeIn.tscn

105 lines
2.6 KiB
Text
Raw Normal View History

2021-09-28 15:55:03 +00:00
[gd_scene load_steps=7 format=2]
2021-09-08 08:27:14 +00:00
[ext_resource path="res://Effects/transitionPattern.png" type="Texture" id=1]
[ext_resource path="res://Effects/Transition.gd" type="Script" id=2]
2021-09-28 15:55:03 +00:00
[ext_resource path="res://SFX/Scratch/Fadeout.ogg" type="AudioStream" id=3]
[ext_resource path="res://SFX/Scratch/Fadein.ogg" type="AudioStream" id=4]
2021-09-08 08:27:14 +00:00
[sub_resource type="Animation" id=1]
resource_name = "FadeIn"
2021-09-28 15:55:03 +00:00
length = 0.7
2021-09-08 08:27:14 +00:00
step = 0.05
tracks/0/type = "bezier"
tracks/0/path = NodePath("TransitionSprite:position:x")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"points": PoolRealArray( 0, -0.25, 0, 0.25, 0, 384, -0.25, 0, 0.25, 0 ),
2021-09-28 15:55:03 +00:00
"times": PoolRealArray( 0, 0.7 )
2021-09-08 08:27:14 +00:00
}
tracks/1/type = "method"
tracks/1/path = NodePath(".")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
2021-09-28 15:55:03 +00:00
"times": PoolRealArray( 0.7 ),
2021-09-08 08:27:14 +00:00
"transitions": PoolRealArray( 1 ),
"values": [ {
"args": [ ],
"method": "finish_animation"
} ]
}
[sub_resource type="Animation" id=2]
resource_name = "FadeOut"
2021-09-28 15:55:03 +00:00
length = 1.3
2021-09-14 10:22:39 +00:00
loop = true
2021-09-08 08:27:14 +00:00
step = 0.05
tracks/0/type = "value"
tracks/0/path = NodePath("TransitionSprite:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
2021-09-28 15:55:03 +00:00
"times": PoolRealArray( 0, 0.4, 1.25 ),
"transitions": PoolRealArray( 1, 1, 1 ),
2021-09-08 08:27:14 +00:00
"update": 0,
2021-09-28 15:55:03 +00:00
"values": [ Vector2( 384, 0 ), Vector2( 0, 0 ), Vector2( 0, 0 ) ]
2021-09-08 08:27:14 +00:00
}
tracks/1/type = "method"
tracks/1/path = NodePath(".")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
2021-09-28 15:55:03 +00:00
"times": PoolRealArray( 1.25 ),
2021-09-08 08:27:14 +00:00
"transitions": PoolRealArray( 1 ),
"values": [ {
"args": [ ],
"method": "finish_animation"
} ]
}
2021-09-28 15:55:03 +00:00
tracks/2/type = "audio"
tracks/2/path = NodePath("AnimationPlayer/FadeoutSound")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"clips": [ {
"end_offset": 0.153926,
"start_offset": 0.0,
"stream": ExtResource( 3 )
} ],
"times": PoolRealArray( 0 )
}
2021-09-08 08:27:14 +00:00
[node name="Transition" type="CanvasLayer"]
2021-09-11 20:35:58 +00:00
layer = 128
2021-09-08 08:27:14 +00:00
script = ExtResource( 2 )
[node name="TransitionSprite" type="Sprite" parent="."]
visible = false
z_index = 400
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 0, 0, 768, 216 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/FadeIn = SubResource( 1 )
anims/FadeOut = SubResource( 2 )
2021-09-28 15:55:03 +00:00
[node name="FadeInSound" type="AudioStreamPlayer" parent="."]
pause_mode = 1
stream = ExtResource( 4 )
bus = "SFX"
[connection signal="finished" from="FadeInSound" to="." method="_on_FadeInSound_finished"]