Forum rules - please read before posting.

Dialogue & Play One Shot not working when paused

Hi there,

So I'm having an issue where dialogue/sound (specifically the Sound: Play One Shot Actionlist) won't play while paused. I've looked it up here and it seems like AC was unable to play dialogue when paused in the past, so I'm curious if it has changed and if there's a way around it. If not, I'm having the following issue when a menu is played and the 'pauses game?' selection isn't selected for that particular menu (video):
https://drive.google.com/file/d/19cYNRbyBe76u3lO0FXqq0fYA7RXCVc7v/view?usp=sharing

You'll see in the first part, I select a newspaper and it plays a sound, shows a newspaper, and you're able to put it back and move around again. This newspaper is working with a menu that pauses the game. After that, I go on to press a piece of paper on a bulletin board. You can see after I select it, I'm unable to press back (or actually, it looks like the game is technically going back as it unlocks the navigation again, but it won't take down the menu). This hotspot works with a menu that doesn't pause the game. That really seems to be the only difference between the two (and I've tested the other menu by turning off the pauses game and it does the same thing).

Here is the ActionList for the piece of paper hotspot on entering the menu:
https://drive.google.com/file/d/1McUMg8RPXaethEgAgKDU-iRkQ2T92vzq/view?usp=sharing

Here is the ActionList for the piece of paper hotspot on exiting the menu:
https://drive.google.com/file/d/1CejhlJkoJvCljvo07F2Kn-JNb73GAA9Z/view?usp=sharing

Not sure how to navigate around this... Thanks!!!

Comments

  • edited June 24

    It's hard to glean from the video what's going on exactly, but you can enable AC's Status box at the bottom of the Settings Manager to list the game's current state.

    It might be just a case of adjusting the ActionList's properties - try unchecking Unfreeze pause menus?.

    However, is the game necessary to be paused during this time? If it's only to prevent Hotspot interactivity, know that the Engine: Manage systems Action can be run to temporarily disable the Interaction system while your Menu is open. To automate this with a given Menu, you can run these Actions in the Menu's ActionList when turn on / off assets.

  • I should state, although it looks like gameplay, when I click the bulliten board in the game those are menu pop ups.

    There's no real reason (or gameplay reason) for the game to be paused, but like in the video at the end the menu's aren't closing unless I check the "Pauses game?" option in the menu's properties... Not sure why it's doing that though. I can turn off the other hotspot interactivity fine, but the main issue is that when I press the back button (which the ActionList is the 3rd link in the OG post), it's not turning off the menu.

    I can't find the "unfreeze pause menus?" property in my ActionList- for reference, the actionlists live in my scene, and the other properties are "When running: Pause Gameplay" (I had it play in background and nothing changed), is skippable is checked, and use parameters is unchecked. Those are all the properties listed

  • https://drive.google.com/file/d/1gBUrhLaO7Cu876b9YHxfdiqXRPWjWrqq/view?usp=sharing

    Hopefully it's more clear in this video with AC status turned on. When I click the piece of paper on the bulliten, it's not switching cameras, but a menu is shown. when clicking the piece of paper and when exiting, the menu uses the ActionLists mentioned in the OG post. It commands it to turn off the menu but it's not letting it for some reason

  • To be clear, the menu that's not turning off is the full-screen bulletin board popup, and it's named Examine?

    When is the "exit" ActionList being run, and does it work if you manually run it from the top of its Inspector?

    This ActionList also involves making elements hidden, are those Actions being ignored too? Check the Console for related messages, as you should get a warning if it cannot find the referenced menu/elements.

    I also see that the navigation arrows are appearing while this Examine menu is shown. You'll likely want to hide those until the menu turns back off again. How that's done exactly will depend on the navigation menu's Appear type, but a Menu: Change state Action that either locks it or turns it off should do it. To sync it with the Examine menu's visibility, you can run this in Examine's ActionList when turn on asset, and similarly show it again in its turn off asset.

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.