I’ve been doing the tutorial for the Dodge the Creeps and I’ve gotten the last section, but I haven’t been to finish it because at the last section the game fails to loop. Either it doesn’t game over, or it does the equivalent of a crash and ends prematurely. I’ve attempted to troubleshoot the problem myself, but at this point, I’ve seemed to done everything correctly according to instructions, and it’s still not really working. I’m asking for some assistance since I don’t seem to know how to fix this problem.
Well, whenever the player gets it by the creep, instead of the game showing the “game over” screen, it either continuously loops or simply does the equivalent of an “crash” where it just stops and goes back to the window. I’m not sure why it’s not looping properly and I’m no closer to solving the problem myself.
The only problem i found was In your hud script, after fix that i didn’t find anything else wrong:
func show_game_over():
show_message("You suck. Try again!")
#This is waiting for the timeout
# Timeout is a signal, not a function, you don't
# use the ()
#await $MessageTimer.timeout()
await $MessageTimer.timeout
$Message.text = "Dodge The Creeps"
$Message.show()
#One Shot Time
await get_tree().create_timer(1.0).timeout
$StartButton.show()