Hi! Sorry for a few questions at once, just really need an answer)
We are a team are now developing an idle game, we have different clients (30 pieces), these are different sprites, as they open as the game progresses, all clients are added to the family, it is necessary to save state when moving to another level.
I save each instance of the families to the JSON array, then when I come back, I go through the array, create a family instance and load JSON and make errors, because the wrong sprite may be created (for example, a man was needed, and a man was created and the man’s parameters were loaded) you have to separate all clients and record them separately, and then download them separately, is it possible to make it somehow easier?
The second question is that preloading of images has now appeared in C3, this is excellent, it simplifies downloading, but what to do if there is a restaurant layout, whose images in the debugger occupy 250mb and there is a store layout on which several objects need to switch quickly between layouts (less than 1 second so that it is pleasant to the user's eyes), is it possible not to unload images from memory?
There was an option to duplicate sprites on other layouts, is this a good idea?
The third question - is it possible to make parallel work of layouts?
The game has a hall layout and a kitchen layout; it is necessary that they work in parallel.
Now just objects are on the same layout, switching simply by moving the camera (scrollx), this is not very convenient when developing, given that you can’t center objects that are not in the layout area, but also inconvenience in the number of layers and that they cannot be divided into groups .
Any tips?
For any information, links to useful articles, etc. I will be very grateful! :)