pegchamp/Effects/FadeIn.tscn

82 lines
2 KiB
Text
Raw Normal View History

2021-09-08 08:27:14 +00:00
[gd_scene load_steps=5 format=2]
[ext_resource path="res://Effects/transitionPattern.png" type="Texture" id=1]
[ext_resource path="res://Effects/Transition.gd" type="Script" id=2]
[sub_resource type="Animation" id=1]
resource_name = "FadeIn"
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-14 10:22:39 +00:00
"times": PoolRealArray( 0, 1 )
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-14 10:22:39 +00:00
"times": PoolRealArray( 1 ),
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"
length = 0.75
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-14 10:22:39 +00:00
"times": PoolRealArray( 0, 0.75 ),
2021-09-08 08:27:14 +00:00
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector2( 384, 0 ), Vector2( 0, 0 ) ]
}
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 = {
"times": PoolRealArray( 0.75 ),
"transitions": PoolRealArray( 1 ),
"values": [ {
"args": [ ],
"method": "finish_animation"
} ]
}
[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="."]
2021-09-14 10:22:39 +00:00
playback_process_mode = 0
2021-09-08 08:27:14 +00:00
anims/FadeIn = SubResource( 1 )
anims/FadeOut = SubResource( 2 )