Forum rules - please read before posting.

Temporarily allow gameplay during conversation

Hi - I have a conversation where I'd like one of the dialog options to distract the NPC that the player is talking to, and allow the player five seconds of regular gameplay in order to do an action before the NPC turns around and then the conversation resumes. I'd like gameplay to be paused for the rest of the conversation.

In my head it goes as follows:

  • Start Conversation (gameplay is paused)
  • Select "distract" dialog option
  • "Distract" dialog option runs Action List
  • Action List uses Engine>Wait 5 Seconds to act as a timer
  • Player is temporarily able to interact with the scene as normal
  • 5 seconds expires
  • Return to Conversation, gameplay pauses again

...but that doesn't work for me, as gameplay stays paused throughout. I've tried variants using "Run in Background" and "Play in Background" on conversations and dialog options, and I've tried it with "Allow regular gameplay during Conversations" checked in the Settings Manager, but none of the combinations seem to achieve what I'm looking for.

Is this possible?

Comments

  • It's possible, you just need to ensure the original ActionList that runs the Conversation isn't running at the time. In the ActionList: Run Action that runs the separate timer, make sure that Wait until finish? is unchecked.

    At the end of the timer, run a separate ActionList: Run Action that runs the original ActionList, with Run from start? unchecked so that you can select the Dialogue: Start conversation Action to run from.

    To help debugging situations like this, you can enable the AC Status box at the bottom of the Settings Manager. At runtime, this will list the game's current state (Normal, Cutscene etc) as well as the ActionLists running that contribute to it.

  • Ah, got it - I'll give that a try, thank you!

  • It worked! Thank you again.

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.