Updating actors on different levels
In many older games, if you enter a building, a new level with its interior will be loaded. I will base my question on the game: "Harvest Moon", where such a mechanic was implemented. A new day always starts and ends inside the main house.
Now, how can you for example update the plants growing outside the building? Doing all the calculations inside a GameInstance seems a little bit weird... Is there any better way to achieve this? I thought about level streaming, but the interior and exterior dimensions of the house do not match...
Screenshots of the levels:
asked Feb 15 '19 at 01:56 PM in Using UE4
if using two separate levels where one is loaded and the other is unloaded, the issue is that the unloaded level ceases to exist when unloaded. this leads me to two possible solutions. first though some assumptions, im assuming that the situation is something like you plant some plants and after each day they are meant to grow a bit.
ok so for the first possible solution you could create a array which contains the pertinent information about each plant (location, growth stage int, class, etc). then you dont really need to worry about the level being unloaded you could instead just spawn the plants back into the level on begin play.
the second solution would be to use level streaming. in this case however you would not have the house level actually in the house mesh you would place it elsewhere such as below the terrain and just teleport the character there. this would allow you to not unload the level which eliminates the issue.
Follow this question
Once you sign in you will be able to subscribe for any updates here