Hello everyone I have a question. Does Adventure Creator supports working in an additive scene?
I'll explain how I usually work in my projects. I like to work with separate scenes for different purposes, loading the environment scene first so Unity can use lighting and scene settings adapted to that scene, and after that load an additive scene with gameplay or any other logic over that environment scene.
I tryed doing this with AC but seems to not be working well and can't understand why. As far I know, an GameEngine object is required for AC to be run, so if I keep everything AC needs in an additive scene it should work but I'm facing some issues.
Do I need to have something to be aware for working with this work flow?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
The Scene: Add or remove Action can be used to load additional scenes without switching the main one. What are the exact issue(s) you're facing?
My approach is to have the environment scene loaded first and after that load the AC scene like this:
https://imgur.com/a/EOrvoU1
The environment scene only has the scenario with meshes and lighting. And the other has the AC logic and gameplay for that environment. That means "Kitchen - Breakfast Quest" has the hotspots, playable directors, triggers and stuff.
I get this warning that I can't figure out how to fix:
https://imgur.com/a/noIneL6
And that warning probably means that AC couldn't start because no player spawns and no camera despite the background one is rendering.
https://imgur.com/a/nlVdfoK
I found that that warning is because the MultipleSceneChecker class is searching for SceneChanger in a persistent engine that I guess, it isn't created.
The way I load those scenes is this:
https://imgur.com/a/sDbg0n9
I also tryed to load them by ActionLists when the Player get closer to the kitchen door. This is the ActionList:
https://imgur.com/a/36VnWQ0
That is an ActionList asset that uses parameters for loading scenes because It's planned to be used by every door in the game.
But the Actionlist execution seems to stop when reaches the Scene Switch action, skiping everything that is afterwards despite I unchecked "Is Skippable" and checked "Can survive scene changes".
So I also tryed to convert the environment scene to an AC scene. And in the "OnStart" cutscene run an ActionList that Adds the logic one "Kitchen - Breakfast Quest", that worked better than the other options, but the problem is that the camera and PlayerSpawn is managed by the environment scene. And I can't find a way to switch to the logic scene's camera and PlayerSpawn position.
I would prefer to load the scenes by scripting, without the need to convert environment scenes into AC ones. Is that possible?
The main/active scene will need to be an AC one in order for it to run correctly. Sub-scenes can also be AC scenes, but this is not a requirement.
The default camera / PlayerStart fields can be bypassed in favour of a Cutscene in the added scene that runs Camera: Switch / Object: Teleport Actions to set the camera / Player position. If this is set as the sub-scene's OnStart cutscene, you can check the Scene: Add or remove Action's Run 'Cutscene on start?' option to run it.