Open Iftahh opened 2 years ago
Hi @Iftahh, thanks for taking time explaining your suggestion!
I would split the problem in 2 separate issues:
pre_start()
behaviour on scene loading (https://github.com/crystal-bit/godot-game-template/issues/66 a simpler issue that could be fixed quickly in the main
branch)
Idea: After
pre_start
, but beforestart
the scene can add more "in-scene" stages to the progress-bar.I think the pre_start function can be used for this, and maybe using
yield
to advance the progress bar (coroutines style) or by emitting signals.I guess that in order to have proper progress-bar the number of "in-scene" stages need to be known before the scene is loaded, which is tricky, a simple solution is to pass it in the params, but I hope there is a more elegant solution.
Example use case: The gameplay.tscn scene generates procedural level in the pre_start func