-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBossIntro.gd
More file actions
36 lines (30 loc) · 1 KB
/
BossIntro.gd
File metadata and controls
36 lines (30 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
extends Node2D
onready var textbox = $TextBox
onready var pause_menu = $PauseMenu
var paused = false
func _process(_delta):
if Input.is_action_just_pressed("Pause"):
pause()
func pause():
if paused == false:
pause_menu.show()
Engine.time_scale = 0
else:
pause_menu.hide()
Engine.time_scale = 1
paused = !paused
func _ready():
OS.window_fullscreen = true
textbox.visible = true
if GlobalVar.stage == 1:
textbox.queue_content("An horrible figure stands before you, made of flesh and blood. It barely resembles a human.")
textbox.queue_content("WATCH OUT!")
if GlobalVar.stage == 2:
textbox.queue_content("Several people melt together. Their minds, corrupted by the abyss.")
textbox.queue_content("WATCH OUT!")
if GlobalVar.stage == 3:
textbox.queue_content("The air grows thicker, your sight is clouded, you're shivering with fear.")
textbox.queue_content("...")
func _on_TextBox_textbox_done():
GuiMusic.stop_music()
get_tree().change_scene("res://export_combat/CombatContainer.tscn")