generated from krampus/template-godot4
Title screen sounds stop immediately on new game or continue game
This commit is contained in:
parent
be7b0d4335
commit
d644cba3ff
@ -24,11 +24,18 @@ func _ready() -> void:
|
||||
continue_button.disabled = false
|
||||
|
||||
|
||||
func stop_sounds() -> void:
|
||||
title_sfx.stop()
|
||||
title_drone.stop()
|
||||
|
||||
|
||||
func continue_game() -> void:
|
||||
stop_sounds()
|
||||
LoadingTools.load_save(save_path)
|
||||
|
||||
|
||||
func new_game() -> void:
|
||||
stop_sounds()
|
||||
LoadingTools.load_level(level_scene)
|
||||
|
||||
|
||||
@ -42,5 +49,4 @@ func quit() -> void:
|
||||
|
||||
|
||||
func _exit_tree() -> void:
|
||||
title_sfx.stop()
|
||||
title_drone.stop()
|
||||
stop_sounds()
|
||||
|
Loading…
x
Reference in New Issue
Block a user