Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | FelipeRattu |
Every time i playtest or export something, while the godot splash screen is appearing for the player the game itself starts running in the background.
I’m making a runner game where the first thing the character do is jump up and perform a start animation and then starts running, this start animation never plays visually because it’s treggered when the game is loading so when the game pops up for the user the character is already in running animation
My workarround was to use a timer in the first line of the main _ready() method, but i don’t feel like that’s a solution because in slower machines maybe the time isn’t enough and in faster machines maybe if feels slow to start.
Is there a way to force Godot to first load the assets and stuff and then run the game’s _ready() methods and stuff? or maybe a method i can call on _ready() to wait for the game to show and run the rest of the code? idk :S