make fami cutscene skipable

This commit is contained in:
Haze Weathers 2024-02-27 22:12:00 -05:00
parent 5e8ebcd3d0
commit fd10cfca8c
2 changed files with 50 additions and 14 deletions

View file

@ -1,3 +1,17 @@
extends Node2D
signal cutscene_finished
export var cutscene_skip: float = 92.0
onready var animation_player: AnimationPlayer = $AnimationPlayer
func _input(event: InputEvent) -> void:
if event.is_action_pressed("jump") and animation_player.current_animation_position < (cutscene_skip - Options.transition_speed_secs * 2.0):
skip_cutscene()
func skip_cutscene() -> void:
Fade.fade_out(Options.transition_speed_secs)
yield(Fade, "fade_finished")
animation_player.seek(cutscene_skip)
Fade.fade_in(Options.transition_speed_secs)

View file

@ -156,10 +156,34 @@ tracks/4/keys = {
"update": 0,
"values": [ Color( 0.345098, 0.74902, 0.878431, 0 ) ]
}
tracks/5/type = "value"
tracks/5/path = NodePath("Label:text")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ "Aha so you've made it this far, however your efforts are all in vain." ]
}
tracks/6/type = "value"
tracks/6/path = NodePath("FamiHuman:position")
tracks/6/interp = 1
tracks/6/loop_wrap = true
tracks/6/imported = false
tracks/6/enabled = true
tracks/6/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ Vector2( 160, 167 ) ]
}
[sub_resource type="Animation" id=2]
resource_name = "cutscene"
length = 92.0
length = 93.0
step = 0.5
tracks/0/type = "value"
tracks/0/path = NodePath("Label:text")
@ -168,12 +192,11 @@ tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0.1, 4.95088, 14.1874, 20.9397, 30.797, 40.2982, 49.7601, 59.7868, 64.7672, 71.5391, 72.2 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ),
"times": PoolRealArray( 0, 4.95088, 14.1874, 20.9397, 30.797, 40.2982, 49.7601, 59.7868, 64.7672, 71.5391, 72.2, 92 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ),
"update": 2,
"values": [ "Aha so you've made it this far, however your efforts are all in vain.
", "You see, SG,
I plan to use the shards to power my spaceship, its exhaust will be so powerful, you peasants will all be vaporized. ", "Me and all of the wonderful billionaires of the world will head to planet X, the newly discovered planet beyond pluto.", "I've heard you want to start a revolution. Well, I'll have you know I kicked off my own revolution in 2068, and to be honest I don't quite see why you want my revolution to end.", "You know what they say, the freer the market, the freer the people, and ever since then I've never felt so free! I think your revolution is a foolish pipe dream! ", "Adam Smith once said \"Nobody but a beggar chooses to depend chiefly upon the benevolence of his fellow citizens\", your commie society could never work!", "I will defend my status quo as fiercly as possible! It was not by my hand that our society was erected, but it will be by mine that it is upheld!", "Oh? How will i reconstruct the Zircon Ultima? You're just the perfect tool for that. ", "While you've been on your gay little adventure collecting shards I've been waiting for this very moment to take them all from you!", "Have at you!", "" ]
"values": [ "Aha so you've made it this far, however your efforts are all in vain.", "You see, SG,
I plan to use the shards to power my spaceship, its exhaust will be so powerful, you peasants will all be vaporized. ", "Me and all of the wonderful billionaires of the world will head to planet X, the newly discovered planet beyond pluto.", "I've heard you want to start a revolution. Well, I'll have you know I kicked off my own revolution in 2068, and to be honest I don't quite see why you want my revolution to end.", "You know what they say, the freer the market, the freer the people, and ever since then I've never felt so free! I think your revolution is a foolish pipe dream! ", "Adam Smith once said \"Nobody but a beggar chooses to depend chiefly upon the benevolence of his fellow citizens\", your commie society could never work!", "I will defend my status quo as fiercly as possible! It was not by my hand that our society was erected, but it will be by mine that it is upheld!", "Oh? How will i reconstruct the Zircon Ultima? You're just the perfect tool for that. ", "While you've been on your gay little adventure collecting shards I've been waiting for this very moment to take them all from you!", "Have at you!", "", "" ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("FamiVoice:playing")
@ -182,10 +205,10 @@ tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.01 ),
"transitions": PoolRealArray( 1, 1 ),
"times": PoolRealArray( 0, 0.01, 92 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 1,
"values": [ false, true ]
"values": [ false, true, false ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("Cop:position")
@ -230,10 +253,10 @@ tracks/5/loop_wrap = true
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/keys = {
"times": PoolRealArray( 75, 77, 83, 85, 89, 91, 92 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1 ),
"times": PoolRealArray( 0, 75, 77, 83, 85, 89, 91, 92 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1, 1 ),
"update": 0,
"values": [ Vector2( 160, 167 ), Vector2( 105, 167 ), Vector2( 105, 167 ), Vector2( 160, 167 ), Vector2( 160, 167 ), Vector2( 160, 167 ), Vector2( 160, 83 ) ]
"values": [ Vector2( 160, 167 ), Vector2( 160, 167 ), Vector2( 105, 167 ), Vector2( 105, 167 ), Vector2( 160, 167 ), Vector2( 160, 167 ), Vector2( 160, 167 ), Vector2( 160, 83 ) ]
}
tracks/6/type = "value"
tracks/6/path = NodePath("ShardParticles:emitting")
@ -364,8 +387,7 @@ margin_top = 48.0
margin_right = 240.0
margin_bottom = 136.0
theme = ExtResource( 3 )
text = "You see, SG,
I plan to use the shards to power my spaceship, its exhaust will be so powerful, you peasants will all be vaporized. "
text = "Aha so you've made it this far, however your efforts are all in vain."
align = 1
valign = 1
autowrap = true