XaiJu
CodeLikeMe
CodeLikeMe

patreon


Unreal Survival #22 - Save World State

In this episode of the unreal engine survival series, I am going to implement a way to save the state of the world. For now we only have the player character properties and the fruit plants with re-growable fruits are the only entities that require saving and loading their state to keeo a continuous gaming experience between different game sessions. We have already implemented ways to save and load the character properties such as health, water level, food level and inventory items. Today, let's see how to save and load the growth state of the fruit plants. That means, when i save the game, if a particular plant has half grown fruits, in the next time when i load from that save game, that specific fruit plant should have half grown fruits exactly as in the time when we save the game. Just like that, the growth state of each instance of fruit plant will be saved and loaded into the game. If you plan to add farming into the game, this method can be used to save and load the state of the farm as well. So, you can have a farm with a continuously growing harvest between separate gameplay sessions.z

password=codelikeme_state

Unreal Survival #22 - Save World State

More Creators