From f53d1d99707c5063a35c0c68890e0947077108ad Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Thu, 5 Feb 2026 21:54:16 +0200 Subject: Work on intro cinematic --- dialogues/cine_intro_ship1.gd | 27 +++++++++++++++++++++++++++ dialogues/cine_intro_ship1.gd.uid | 1 + dialogues/relic_get.gd | 2 +- 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 dialogues/cine_intro_ship1.gd create mode 100644 dialogues/cine_intro_ship1.gd.uid (limited to 'dialogues') diff --git a/dialogues/cine_intro_ship1.gd b/dialogues/cine_intro_ship1.gd new file mode 100644 index 0000000..fb9a5e4 --- /dev/null +++ b/dialogues/cine_intro_ship1.gd @@ -0,0 +1,27 @@ +class_name DialogueCineIntroShip1 +extends Dialogue + +@onready var top: Top = get_tree().root.get_node("Top") +@onready var player: Player = parent.get_node("Player") +@onready var captain: Node2D = parent.get_node("Captain") +@onready var crew1: Node2D = parent.get_node("Crew1") +@onready var crew2: Node2D = parent.get_node("Crew2") + +func _ready(): + player.remove_from_group("camera_target") + + await say(captain, "Crew!") + + player.velocity.x = -1 # flip + crew1.flip_h = true + crew2.flip_h = true + + await get_tree().create_timer(1.0).timeout + + await say(captain, "The Frogcorp Scientific Excursion commences today!") + await say(captain, "TODO") + + await top.clear_cine_bars() + + player.request_state_normal() + player.add_to_group("camera_target") diff --git a/dialogues/cine_intro_ship1.gd.uid b/dialogues/cine_intro_ship1.gd.uid new file mode 100644 index 0000000..50d36eb --- /dev/null +++ b/dialogues/cine_intro_ship1.gd.uid @@ -0,0 +1 @@ +uid://bgtapiu3u8vre diff --git a/dialogues/relic_get.gd b/dialogues/relic_get.gd index 1b770dd..a086c36 100644 --- a/dialogues/relic_get.gd +++ b/dialogues/relic_get.gd @@ -17,7 +17,7 @@ func _ready(): await top.play_cine_bars() await say(r, "You found a mysterious relic!") - top.clear_cine_bars() + await top.clear_cine_bars() r.queue_free() get_tree().paused = false -- cgit v1.3