I'm using the example resource_queue.gd from the documentation at http://docs.godotengine.org/en/3.0/tutorials/misc/background_loading.html#example-class , trying to get a side-scroller to load up new scenes (chunks) when a VisibilityNotifier2d comes into view. I have a script attached to the VisibilityNotifier2D node, which preloads resource_queue.gd .
When I run the game using the default scene (stage.tscn), the next chunk (stage_0_1.tscn) loads fine when the VisibilityNotifier2D comes into view. However, if I start the game on stage_0_0.tscn, the game locks up when the VisibilityNotifier2D comes into view.
Setting up a breakpoint and stepping through the code, it looks like it gets caught in an infinite loop in the _wait_for_resource function inside resource_queue.gd because stage_0_1.tscn stays as a ResourceInteractiveLoader, and never finishes loading? I don't know. Am I doing something wrong, is there a bug, either in my code or the core code? Help!
My project is available here: https://drive.google.com/drive/folders/1wl5xubB0dqEfTtZ1TAEbH081a1GA7SWI?usp=sharing