pegchamp/Effects/FadeIn.tscn

82 lines
2.0 KiB
Plaintext

[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 ),
"times": PoolRealArray( 0, 1 )
}
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( 1 ),
"transitions": PoolRealArray( 1 ),
"values": [ {
"args": [ ],
"method": "finish_animation"
} ]
}
[sub_resource type="Animation" id=2]
resource_name = "FadeOut"
length = 0.75
loop = true
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 = {
"times": PoolRealArray( 0, 0.75 ),
"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"]
layer = 128
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="."]
playback_process_mode = 0
anims/FadeIn = SubResource( 1 )
anims/FadeOut = SubResource( 2 )