Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving and loading the "View" #21

Open
ilka2 opened this issue Dec 30, 2024 · 1 comment
Open

Saving and loading the "View" #21

ilka2 opened this issue Dec 30, 2024 · 1 comment

Comments

@ilka2
Copy link

ilka2 commented Dec 30, 2024

I have a problem implementing save/load. The text is saved, but the background (View component) is not loaded. When I load a save, I just have a blue background instead of my image. The "Say Dialog" character image is also not saved. If the save system does not support saving images, can you tell me what to do and which scripts to use? If I can still implement the icons of the characters myself, the choice of "View" is made through Flowchart, which I am far from.

Basically, the "view" is the camera position. If I understand how the camera interacts with the "view", I will be able to save and load the background on my own, bypassing Fungus.

Happy New Year

@CG-Tespy
Copy link
Owner

Sorry for responding so late. As for the backgrounds, character images, and camera positions not being saved...
Yes, the system does not save that stuff. As for how to get around that, here are a couple solutions:

  1. Set up Boolean Variables in Fungus, updating them as appropriate. Then in Save Data Loaded blocks, check those variables to see which backgrounds, character images, and camera positions should be loaded.
  2. Create your own DataSaver and SaveLoader scripts that save and load that stuff for you. If you are confident in your C# skills, this is probably the better option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants