diff options
author | metamuffin <metamuffin@disroot.org> | 2024-06-22 23:48:25 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-23 19:29:14 +0200 |
commit | 2c5ced9a026012ef8fe890ff006d261148ce70f1 (patch) | |
tree | 40c0d9073a3302ce9fe18f800325af697ae2582e /client/scenes/scene_transition.tscn | |
parent | fd01e27d3bed73fd216cbe9bce24de34e6859a7f (diff) | |
download | hurrycurry-2c5ced9a026012ef8fe890ff006d261148ce70f1.tar hurrycurry-2c5ced9a026012ef8fe890ff006d261148ce70f1.tar.bz2 hurrycurry-2c5ced9a026012ef8fe890ff006d261148ce70f1.tar.zst |
fix scene transition flicker
Diffstat (limited to 'client/scenes/scene_transition.tscn')
-rw-r--r-- | client/scenes/scene_transition.tscn | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/client/scenes/scene_transition.tscn b/client/scenes/scene_transition.tscn new file mode 100644 index 00000000..0865dddf --- /dev/null +++ b/client/scenes/scene_transition.tscn @@ -0,0 +1,71 @@ +[gd_scene load_steps=6 format=3 uid="uid://bg2d78ycorcqk"] + +[ext_resource type="Script" path="res://scripts/scene_transition.gd" id="1_c2vxm"] + +[sub_resource type="Animation" id="Animation_xgn2a"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath(".:color") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Color(0, 0, 0, 1)] +} + +[sub_resource type="Animation" id="Animation_tglmc"] +resource_name = "fade_in" +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath(".:color") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 0.9), +"transitions": PackedFloat32Array(1, 1), +"update": 0, +"values": [Color(0, 0, 0, 1), Color(0, 0, 0, 0)] +} + +[sub_resource type="Animation" id="Animation_egop8"] +resource_name = "fade_out" +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath(".:color") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 0.9), +"transitions": PackedFloat32Array(1, 1), +"update": 0, +"values": [Color(0, 0, 0, 0), Color(0, 0, 0, 1)] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_pea72"] +_data = { +"RESET": SubResource("Animation_xgn2a"), +"fade_in": SubResource("Animation_tglmc"), +"fade_out": SubResource("Animation_egop8") +} + +[node name="SceneTransition" type="ColorRect"] +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +mouse_filter = 2 +color = Color(0, 0, 0, 1) +script = ExtResource("1_c2vxm") + +[node name="animation" type="AnimationPlayer" parent="."] +libraries = { +"": SubResource("AnimationLibrary_pea72") +} +speed_scale = 4.0 |