Yogoda / ZoneLoadingSystem

Dynamic zone loading system for Godot
Creative Commons Zero v1.0 Universal
226 stars 13 forks source link

Add this to an existing 3D game #10

Closed Gamemap closed 3 years ago

Gamemap commented 3 years ago

Hi,

this system is really cool, but how do I add it to an existing 3d game?

I have the background loader loaded automatically. Is that all or do I need to use BackgroundLoader.start(), etc. ? Do I need to change a layer / layer name ?

Thank you, Gamemap

P.S. It would also be nice if you could make a video of the installation for other users. (but you do not have to)

Yogoda commented 3 years ago

Hello, thank you for your interest!

First, you need to split your world into zones, and save each zone as a separate *.tscn file.

Then create a new scene, name it world and save it, and replicate the node structure you see in the demo.

Follow the instructions "Configure the player" and "Add a new zone" in the Github to add your zones.

I know this is a bit complicated, I will try to think of a way to communicate it better :)

Gamemap commented 3 years ago

Ok, thanks a lot.

Do I need to use BackgroundLoader.start(), etc. ? (or just autoload ?) ~~Do I need to change a layer / layer name ? ( zone_triggers ) If yes, which number ?~~ In the Demo it is the second layer.

Yogoda commented 3 years ago

The BackgroundLoaded background thread is started automatically in the zone_loader script, so no need to start it.

Gamemap commented 3 years ago

I've tested it (and really like it), but can you change the layer (zone_triggers) to the last one so it probably won't collide with other previously defined layers? (for other users it could become a problem)

It is working wounderfull ;) (I have only to rearrange my Player and World but that's ok for no loading screen) <3 <3 <3

Yogoda commented 3 years ago

This is a great suggestion, I updated the layer to use layer 16 instead, which should be free in most games.

Thanks!