Action changes
Action changes Action changes Action changes Actions work Delete error? update addons Test Test Fix exports
This commit is contained in:
@ -47,14 +47,13 @@ func play_audio():
|
||||
|
||||
spoken_text = spoken_text + letter
|
||||
emit_signal("updated_text")
|
||||
|
||||
if letter in " ,-'\"\n":
|
||||
speaking_timer.start(0.05)
|
||||
return
|
||||
elif letter in ".!":
|
||||
speaking_timer.start(0.15)
|
||||
return
|
||||
elif File.new().file_exists(audio_file):
|
||||
elif load(audio_file):
|
||||
track = load(audio_file)
|
||||
audio_player.stream = track
|
||||
audio_player.play()
|
||||
|
@ -9,7 +9,7 @@ func _ready():
|
||||
|
||||
func play_music(song, loop=true):
|
||||
var audio_file = "res://Assets/Music/" + song + ".ogg"
|
||||
if File.new().file_exists(audio_file):
|
||||
if load(audio_file):
|
||||
var track = load(audio_file)
|
||||
looping = loop
|
||||
main_player.stream = track
|
||||
|
Reference in New Issue
Block a user