Forum rules - please read before posting.

Gamestate paused issue

Hey Chris,
I've run into a strange bug very late into a project- and was hoping you could assist.

  • I have a main menu with an episode selection and new game button- all buttons work correctly and transition to the correct scenes using an actionlist. When loading the scenes from the menu they play as expected.
  • Transitioning between scenes works fine using a Scene/Switch for each (i.e. scene 2-3, 3-2 etc.)
  • I have an in-game pause menu using Unity UI with an exit button
  • The exit button calls an actionlist with two nodes- Menu/Change State/Turn Off Menu/Pause and then Scene/Switch/0 (my main menu build index)

The issue is, if I try to load any other scene after exiting and returning to the menu, the game state immediately changes to Paused. It doesn't matter if that scene has been previously loaded or not.

The only way around the issue is to open and close the in-game menu, and the scene will continue as expected.

I've tried loading any other scene from the in-game menu (and loading just a misc scene when hitting exit) and the game still pauses so it isn't an issue with the main menu etc.

At first I thought it might be the pause menu not turning off and resuming the gamestate before switching scenes- but I've even put in a wait for a few seconds and the issue persists.

I've tried everything I can think of, and I'm at a loss now... any help would be greatly appreciated!

Comments

  • What are your Unity and AC versions?

    The issue is, if I try to load any other scene after exiting and returning to the menu, the game state immediately changes to Paused.

    By "load", do you specifically mean loading a save-game file, or just switching scene?

    If the Pause menu isn't on, it sounds like it's likely some very specific combination of factors that are causing this issue. If you can create a cut-down project that has e.g. two scenes with steps to reliably recreate the issue, PM it to me and I'll take a look myself.

  • Sorry- yes by load I mean just scene switching.

    I'm running 20201.1.6f1 and AC 1.71.4

    I'll create a cut-down project shortly.

  • edited June 2021

    Make a backup and try the latest AC release - this may have since been resolved.

  • Thanks Chris, issue has been resolved after upgrading. Not sure what was causing it- but all good now. Thanks for your help.

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.