Forum rules - please read before posting.

How to run an actionlist after player switch to another scene?

I have a journal item in my inventory and when I click on it, an actionlist is run that fades out the camera and executes a player switch, taking me to another scene where the journal is displayed in a close-up.
When switching to this new scene I want the camera to fade in, instead of doing a hard cut. How do I run an actionlist right after doing a player switch to a different scene?

Comments

  • Two ways:

    1. Add a Cutscene in the new scene, with the fade Action(s), and attach the ActionList Starter component. Check Run on scene load?, and then set the Scene load condition to Just Switching Player.
    2. Run the your Player: Switch Action from an ActionList asset that has Survive scene changes? checked, and add the fade Action(s) after it.
  • I use your 'solution 1' when entering the journal scene and it works like a charm!
    But as the journal is an inventory item and can be accessed from a number of scenes, I need 'solution 2' when you close the journal and return to the scene you opened it in. But that I cannot get to work.
    As you can see in the attached image, in the journal scene I have an actionlist called 'close' to which I've added the 'survice scene changes' component and made sure it's checked. Now it should run the 'camera fade in' action after the player switch happens, so the fade would occur after returning to the scene outside the journal, correct?

    https://imgbox.com/I9Qbn45B

  • Sorry, to clarify: the Survive scene changes? option I was referring to was the option inside an ActionList asset's Properties panel, not a component to add to a regular scene-based ActionList.

    If you convert the ActionList to an asset file, the option should appear at the top of its Inspector.

    I'm not clear on the reason 'solution 2' is necessary here, however. As you initiate the scene-change by switching Player, then returning to the original scene ought to just be a case of switching back to the previous Player. This should be possible with either solution - unless I'm misunderstanding the situation.

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.