Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Rayu |
I’ve made a soundeffect and when my game hits its time to 0 i call that soundeffect.
This is My Script for the Control Timer:
func _process(delta):
if Globals.timeLeft > 0:
Globals.timeLeft -= delta
$TimerCount.text = str(Globals.timeLeft)
$TimerCount.text = "%d" % Globals.timeLeft
else:
Globals.timeLeft = 0
MusicController.play_sfx()
get_tree().call_group("Playeres", "game_over")
get_tree().call_group("Enemies", "game_over")
get_tree().call_group("GameOverGroup", "game_over")
It plays the Audio but it keeps giving a bug sound, always repeating and not playing the Audio fully.