Forum rules - please read before posting.

Trigger Scene Switching Issue?

Hello!

I love AC so far. In fact, I've got an exhibition coming up in October, so I'm finally realising an interactive project I've been dreaming up for a while.

My project is First Person and uses Triggers to change scenes. It loops, so the very last scene change via trigger brings you back to the first scene. The scene-switching works really well the first time this loop is played, but when a scene is loaded for the second time, the First Person Player in this scene doesn't work!

No movement, head bobbing, running etc. Nothing changes, it is exactly the same scene that is played the first time around.

I'm wondering what might cause this. Is there some kind of setting I need to check when switching scenes via Trigger?

Comments

  • What are your AC and Unity versions, and what is the exact behaviour - that no input at all is registered?

    Check the state of the game by enabling AC's "Status box" at the bottom of the Settings Manager.

    When enabled, the state of the game will be shown at runtime in the Game window. If you're in a Cutscene (which may be why movement etc isn't responding), it'll also lists the ActionLists currently running that are causing it to be in this state.

  • @ChrisIceBox Thanks Chris, I'll get this info over to you this week.

  • Here you go @ChrisIceBox

    Unity: 2021.3.15f1
    AC: 1.77.3

    Here's a link to some images of the first playthough (seems fine) and the second (reads fine, but the errors and lack of gameplay tell me different).

    I seem to get similar errors on the first playthorugh, but it still lets me play! Plus, I've attached a capsule collider to the Player in the scene, so it's strange seeing that error there.

    https://1drv.ms/f/s!Ao0wpnUazsOaiKZXg0skaMrRNYCGvw?e=gJJdnn

    Thanks a bunch Chris!

  • Apologies, but I'm having trouble viewing the images. Could you upload to https://prnt.sc/ instead?

  • Here you go!

    https://prnt.sc/XbP-n5iw0Hh2

    I've since removed the local Event System object and it still playing up. Loops fine in editor, but not in build.

  • Testing image attachment..

  • Thanks. The images don't offer much clues - the game appears to be in regular gameplay when entering the scene the 2nd time.

    It looks like the Console has more messages than those being shown in the screenshot, however. If you clear the Console window before re-entering the 2nd scene (having removed the Event System as well), what are all the messages that show? You can click "Collapse" to group up multiples instances of the same message.

    Loops fine in editor, but not in build.

    To be clear: is this to say there's no issue in the editor, but only in builds?

    In this case, we may need to examine Unity's Player Log file, which is an output of Console messages that occur when running a build. Where this file is will vary with platform, but you can get details of its location here:

    https://docs.unity3d.com/Manual/LogFiles.html

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.