#timeout signal callable not triggering on instance of scene

8 messages · Page 1 of 1 (latest)

subtle haven
#

Hi there. I have managed to create a timer that is supposed to be rigged to queue free the player and the HUD on hitting its timeout signal however for some reason this doesn't happen. I even put in a check to see if the signal connected correctly but that doesn't trigger so Im wondering what the problem is.
There's two scenes at play here, proto_level_1 and Level_Countdown here are the scripts for both...
https://pastebin.com/EdSnLavj
https://pastebin.com/kt5j5rvQ

fair heart
#

The match statement here isn't working as you expect - the result isn't a bool. Try this and check the result:

#

You might then want to consider instead:

#

(or better imho)

hearty tartan
fair heart
hearty tartan
#

Also, I use that pattern for connection a lot, but I've bundled it into a static function in a helper class (which has the sole purpose of containing some static utility functions). This way my check is one line of code anywhere I need to make sure a thing exists and is connected properly.