How to interact with an object in a middle of a dialog?

  • #1, by LupaShivaWednesday, 03. April, 01:08 2 weeks ago
    Hello everyone

    I want to create a dialog with a character, where if you click on an object on the scenario during the dialog, the character does an animation and stops the dialog, i know how to play the animation and exit the dialog, but as soon as the dialog starts, the object cant be clicked, as if the object area disapear! How can i do this?

    Thanks

    Forum Fan

    134 Posts


  • #2, by esmeraldaThursday, 04. April, 09:47 2 weeks ago
    So you want to give the player the control? Only way I see is exiting the dialog and starting it again after clicking on the object.

    To avoid the character walking around - if that is what you want - you could change the leftclick behaviour via script (be careful with that, it won't get saved), set the character speed to 0 or change the waysystem so the character is caged in a tiny spot...

    Key Killer

    513 Posts

  • #3, by brianes32Friday, 05. April, 04:13 A week ago
    Check the layer hierarchy in Visionaire Studio. Ensure the clickable object layer sits above the dialogue box layer. This ensures clicks go through the dialogue box and reach the object.

    If layering isn't the issue, investigate event handling within Visionaire Studio. There might be an event handler attached to the dialogue box that captures all clicks, preventing them from reaching the object.

    Look for options to disable click capturing on the dialogue box during specific dialogue sections or while animations are playing.

    Alternatively, consider creating a separate invisible object behind the dialogue box that captures clicks and triggers the animation/dialogue stop functionality.

    Newbie

    1 Posts

  • #4, by LupaShivaFriday, 05. April, 10:17 A week ago
    Thanks for the help, i forgot to mention that the game and the dialog is in first person view, about the dialog i know how to end and start the dialog but cant interact with the object! About the layering, i could try, but didnt know that the object center afected the dialog box layer, i thought it was only for objects in the scene , im gonna try, and im not good on script, thats why im trying to find a solution without it.

    Forum Fan

    134 Posts

  • #5, by esmeraldaFriday, 05. April, 14:26 A week ago
    Interaction is blocked during the actual dialog. It's not about layering.

    But it's not blocked during animations you play in the dialog actions. You could play an animation (could be transparent frames, or place outside the screen) to provide some time for the player to click and in the animation frames check if the object was clicked by a conditon.

    But I would still go for the exit/start again option...


    There are very few users that drop by here on the forum. So feel free to join the Visionaire Discord server (link is at the bottom of the page), plenty of helpful folks there.

    Key Killer

    513 Posts

  • #6, by LupaShivaFriday, 05. April, 14:55 A week ago
    Dont know if that would work, because the characther has constant iddle animations, moving eyes, mouth, etc, but gotta give it a try, didnt know about the discord server ?? thanks a lot

    Forum Fan

    134 Posts

Write post