generated from SGDA/GodotExampleProject
feat: sound for intro
This commit is contained in:
@ -21,7 +21,6 @@ var text_showing = false
|
||||
func _ready() -> void:
|
||||
text_split = message.text.split("---")
|
||||
text_fine_split = text_split[2].split(" ")
|
||||
print(len(text_fine_split))
|
||||
message.text = ""
|
||||
|
||||
accept_button_1.visible = false
|
||||
@ -34,7 +33,6 @@ func _on_start_connexion_timeout() -> void:
|
||||
message.text = text_split[0]
|
||||
further_connexion.start()
|
||||
|
||||
|
||||
func _on_further_connexion_timeout() -> void:
|
||||
message.text = text_split[1]
|
||||
text_start.start()
|
||||
@ -43,9 +41,9 @@ func _on_text_start_timeout() -> void:
|
||||
message.text = ""
|
||||
time_between_words.start()
|
||||
|
||||
|
||||
func _on_time_between_words_timeout() -> void:
|
||||
if text_fine_split.is_empty():
|
||||
time_between_words.stop()
|
||||
time_before_show_buttons.start()
|
||||
return
|
||||
|
||||
|
@ -1,16 +1,18 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://djmvj0uqw26dg"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://djmvj0uqw26dg"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bhhphcagggc1" path="res://template/scenes/credits/scrolling_credits.tscn" id="1_ftj6e"]
|
||||
[ext_resource type="Script" uid="uid://bwr3tliac4mo2" path="res://scenes/text_wrappers/intro.gd" id="2_sbctf"]
|
||||
[ext_resource type="PackedScene" uid="uid://bkcsjsk2ciff" path="res://addons/maaacks_menus_template/base/scenes/music_players/background_music_player.tscn" id="3_pbsew"]
|
||||
[ext_resource type="Script" uid="uid://1nf36h0gms3q" path="res://addons/maaacks_menus_template/base/scripts/capture_focus.gd" id="4_23spi"]
|
||||
[ext_resource type="AudioStream" uid="uid://dcylcol0nj0pv" path="res://assets/Audio/CIN_INTRO_Pitch mission.ogg" id="4_mudqr"]
|
||||
|
||||
[node name="Intro" instance=ExtResource("1_ftj6e")]
|
||||
script = ExtResource("2_sbctf")
|
||||
scene_to_trigger = "uid://s1cx1gvt4bed"
|
||||
|
||||
[node name="BackgroundMusicPlayer" parent="." index="0" instance=ExtResource("3_pbsew")]
|
||||
bus = &"Master"
|
||||
stream = ExtResource("4_mudqr")
|
||||
bus = &"Cinematique"
|
||||
|
||||
[node name="BackgroundColor" type="ColorRect" parent="." index="1"]
|
||||
layout_mode = 1
|
||||
@ -117,7 +119,7 @@ wait_time = 7.0
|
||||
one_shot = true
|
||||
|
||||
[node name="TimeBetweenWords" type="Timer" parent="." index="8"]
|
||||
wait_time = 0.41
|
||||
wait_time = 0.4
|
||||
|
||||
[node name="TimeBeforeShowButtons" type="Timer" parent="." index="9"]
|
||||
wait_time = 2.0
|
||||
|
Reference in New Issue
Block a user