Forum rules - please read before posting.

Having some issues with Speech and the 'Display forever until user skips it' option

edited August 2024 in Engine development

Hi all

If I have a Hotspot and an Interaction for an object in the scene, and the Interaction's Action List has a Dialogue : Play Speech action, I have a problem when I set the 'Display forever until user skips it' option to true in the Speech manager.

Clicking on the object plays the speech, as expected, but when I click to advance, the game seems to act like I'm clicking on the Hotspot again rather than skipping to the next step in the Action List and so get's stuck in a sort of loop.

It's a 3D game, with movement method of point and click (or first person), input method of mouse and keyboard, interaction method of context sensitive, and hotspot detection method of mouse over.

I'm on Unity 2022.3.42 and AC 1.81.6.

When I test older projects made with previous versions of AC I don't seem to have this problem, so something may have changed in recent versions. Any ideas?

Many thanks

Comments

  • I can't reproduce such an issue on my end.

    Are you using Unity's Input System package, or the regular Input Manager, and does the Hotspot interaction block gameplay?

  • edited August 2024

    Thanks for getting back to me Chris.

    I'm using the regular Input Manager, and the hotspot does pause gameplay.

    I think I know what the problem is though.

    In the Input manager I created an EndCutscene input and assigned it to the mouse 0 button, and the interaction's 'is skippable?' parameter is set to true.

    If I keep the EndCutscene input defined as-is, but set the interaction's 'is skippable?' parameter to false, then I don't get the issue.

    Likewise, if I set the interaction's 'is skippable?' parameter to true, and change the EndCutsene input to something other than mouse 0, then I don't get the issue.

    User error on my part, I think! Sorry for the trouble, but thanks again for your help.

  • Thank for the follow-up.

    This does sound like a bug, from what you've described. I'll look into this.

  • Recreated, thanks for the report.

    It should be fixable by opening up AC's PlayerInput script, and looking for the line:

    KickStarter.actionListManager.EndCutscene ();
    

    (around line 248)

    And then pasting immediately after:

    ResetClick ();
    

    Does that resolve it?

  • edited August 2024

    Yes, looks like it. The dialogue line is skipped and the cutscene is ended. The game no longer gets stuck in a loop of repeatedly playing the dialogue line.

    Thanks Chris.

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.