Forum rules - please read before posting.

Save/Load

Hello,
I have small problem with my game Save/Load.
My game is very simple:
3 images on scene + 3 cameras for each of them + cutscenes
1 variable / points (intriger)
also there is Dialogue System from PixelCrushers
My action:
OnStart:
- turn on/off menu
- unhide/hide menu
- run cutscene_01

Cutscene_01:
-fade camera
-switch camera to CAM_01 ( it will show img_01)
-run DS (inside there is script to change variable)
-points + 5
-Run Cutscene_02 

Cutscene_02/03 all the same like 01

And now problems:
When I play it, it works very good, variable are ok, camera moves from 1 to 3.
When I save on cam_01, works again to the end.
But when I'm in cam_02, and want load cam_01, it will load it, var will change to org. value, but when it reach point to change camera to_02 it stops. I cant do anything.

I was testing it on one big cut scene with all cameras/DS/ or splits it into 3 cutscenes - the same.

there is no OnLoad action.

Unity 2018_2_3f1
AC - newest
DS - newest

I can send You project/exe if that helps.
ThankYou 



Comments

  • I'm presuming that Cutscene_02 switches to Cam_02?

    Ensure that all cameras have a Constant ID component on them - this is necessary to save their states in save game files.

    As I explained in our other thread, AC does not allow for saving mid-Cutscene.

    If Dialogue System allows for it, then you can possible look into having DS call a new Cutscene that runs the remainder of Cutscene1 separately (i.e. increase the points variable and run Cutscene2), so that AC isn't running a Cutscene itself if you save during the DS conversation.  That'll be for that asset's author to clarify, however.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.