The begin isn't the begin

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By JulioYagami

Hey people, I need to play a sound when the game starts but it’s played before (when the splash is being show in the screen and the game is loading yet)… So there are a way to know when the game is 100% loaded?

I could use a Timer, but the loading time is asynchronous and can variate depending the device is running my game.

:bust_in_silhouette: Reply From: kidscancode

Try this: Emit a signal when your loading process completes, and then start the sound when you receive the signal.

But when to emit the signal? :
I didn’t find any function (that is called when the game is loaded) to emit any signal.

JulioYagami | 2019-01-31 10:43

Have you tried this?

onready emit_signal('loaded')

This should emit a signal when the scene’s ready (a.k.a. fully loaded.)

System_Error | 2019-01-31 17:47