Forum rules - please read before posting.

Switching between scenes but retaining progress

Hi

I'm trying to switch between two scenes mid conversation. Scene A starts (say after.. scene X) with a cutscene that involves a camera change and starts a conversation. After the conversation reaches a certain point (say after 4 dialogues) I have it switch to Scene B. This starts Scene B from it's beginning.

Now I have a conversation in Scene B and after a few dialogues, I want it to switch back to Scene A, but it starts Scene a with that cutscene on start involving the camera change and the same conversation from the beginning. Instead, when switching from B to A, I want it to remember to continue the conversation and start the 5th dialogue.

After a few lines in Scene A for the second time, I again want it to switch to Scene B and this time remember the progress in Scene B or have the player in a different position, but not start the Scene B from the beginning again. How can this be achieved?

Thanks!

Comments

  • Positioning the Player according to the previous scene is done by creating a new PlayerStart in your scene, and amending its Inspector to respond to that previous scene.

    A Cutscene cannot survive a scene change, so any changes in the way your scene begins is handled via your OnStart Cutscene.

    If this is the only time you'll enter Scene A from Scene B, you can use the Scene: Check Action in this Cutscene to make different things happen accordingly.  Otherwise, logic in your game is handled by using Variables - see Section 7 of the Manual.  Variables can be Global (game-wide) or Local (per-scene).  To handle logic across multiple scenes, as in this case, use Global Variables.

    In your Variables Manager, create a new Global PopUp variable, name it e.g. "Scene A startup" and give it two values: "Default" and "Continue conversation".  You can add more later if you want more variety when Scene A begins.  You can then use the Variable: Set Action to set the value in Scene B, and the Variable: Pop Up switch Action in Scene A's OnStart Cutscene to act accordingly.
  • Thanks @chrisicebox. I'll try this during the weekend and let you know how it goes
  • Alright, I think that seems to be working perfectly! It's kind of confusing keeping a track of it at the moment, but I think it's exactly what I want.
    Thanks @chrisicebox!
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.