generated from SGDA/GodotExampleProject
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
08bd2ca3b4 | |||
16c7adfceb |
@ -23,7 +23,7 @@ bus/4/name = &"Music"
|
||||
bus/4/solo = false
|
||||
bus/4/mute = false
|
||||
bus/4/bypass_fx = false
|
||||
bus/4/volume_db = -0.030508
|
||||
bus/4/volume_db = -10.0741
|
||||
bus/4/send = &"Master"
|
||||
bus/5/name = &"Ambiance"
|
||||
bus/5/solo = false
|
||||
|
@ -9,6 +9,7 @@ extends Node2D
|
||||
|
||||
var is_interjection_next = false
|
||||
var current_info = 0
|
||||
var is_over = false
|
||||
@onready var vo_interjection: AudioStreamPlayer2D = $RightDoor/VOInterjection
|
||||
|
||||
@onready var vo_player_1: AudioStreamPlayer2D = $RightDoor/VOPlayer1
|
||||
@ -63,16 +64,12 @@ func _on_door_event_confirmed(event_id: String) -> void:
|
||||
|
||||
|
||||
func _on_timer_between_vo_timeout() -> void:
|
||||
if is_interjection_next:
|
||||
print("interjection")
|
||||
if is_over:
|
||||
vo_interjection.play()
|
||||
is_interjection_next = not is_interjection_next
|
||||
return
|
||||
|
||||
|
||||
if current_info >= len(vo_players):
|
||||
is_over = true
|
||||
return
|
||||
|
||||
vo_players[current_info].play()
|
||||
current_info += 1
|
||||
is_interjection_next = not is_interjection_next
|
||||
|
Reference in New Issue
Block a user