My game starts from the menu.blend file. It has 10 buttons to choose level.
Levels are standalone single scene “games” = level.01.blend, level.02.blend, …, level.10.blend
I want to use LibLoad instead of links, because it is dynamic
My questions are:
[1] Will the new file level.01.blend completely replace the current playing blend file (menu.blend ?)
It will start from active layer and camera view automatically ?
[2] What happens to the old file when a new file is loaded ? Do I have to worry about freeing stuff ?
(if it works the first time, does not mean it will still work after a couple hours of playing)
[3] Any in-depth documentation of LibLoad will be appreciated. I have found few things but most are basic.
Thanks in advance, my game is going well, I believe this is one of the last issues I have and then R&D is over, Im going into
100% development.
i use it like smoking said, 1 main blend with all overlay scenes included, and the player.
that blend loads in other blends like the world / buildings/trees etc, if you need an example of loading blends take a look in my sig, i got a loading screen there.
No it libloads the blend files loading the whole blend into the main blend while running the main blend.
as i said i got an example in my signature take a look then you get an idea of how i do it.
for example:
main blend contains the character and all over/underlay scenes (menu/hud/etc)
then you got a few more blends like:
1 with trees
1 with buildings
1 with the world/ground
etc etc
those blends gets loaded into main and you got yourself a level to play.
i suggest you to read up on libload, its not that hard.
but there are many ways to do it.
Typically the menu is a separate scene (do not need to but often it has a lot of benefits to do it that way). While you directly or indirectly use the menu input what to load, you do not use LibLoad within the menu scene. You use it within the game (or level scene). You can switch from menu scene to the game scene, or you have the game scene parallel (background scene).
This means you transfer the desired information from menu scene to the game scene which perform the LibLoad operations there.
It can be something like that: “load forest level”.
You can even load/merge several different blends which all will be added to the current scene.
I have finally understood how LibLoad works. Yes it is supposed to work incrementally.
Currently I am making my first game and I want to keep things as simple, also itis a small game, so Im using startGame(“Level2.blend”), etc
But for a big game I think LibLoad would be necessary. You can not copy stuff from level to level, you must reuse stuff. Currently my game
copies everything from level 1 to level 2 (texures, enemies, scripts, everything). You may get away with something like this in a small game,
but not in a big one.