#Buttons can be pressed while game is loading

6 messages · Page 1 of 1 (latest)

jade niche
#

When I run my game and click while in the boot splash screen, the click gets registered as soon as the game is finished loading, and the main menu gets skipped. I'm pretty sure this happens for all buttons on the main menu.

I've already tried blocking all input until the scene is ready, any other ideas?

timber frigate
#

You could start a timer when the scene is ready and when it timeout, allow inputs

jade niche
#

I'll try that

#

that seems to have fixed it. Thank you.

timber frigate
#

not tested, but you could also try waiting for one frame :

await get_tree().process_frame
my_bool_activate_inputs = true

But the timer solution sounds good too

jade niche
#

I tried it just now, it works