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

  • #1, z LupaShivaWednesday, 03. April, 01:08 hodinky 6 months 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

    Fanoušek fóra

    134 Posts


  • #2, z esmeraldaThursday, 04. April, 09:47 hodinky 6 months 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...

    Zabiják klíčů

    525 Posts

  • #3, z brianes32Friday, 05. April, 04:13 hodinky 5 months 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.

    Bažant

    1 Posts

  • #4, z LupaShivaFriday, 05. April, 10:17 hodinky 5 months 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.

    Fanoušek fóra

    134 Posts

  • #5, z esmeraldaFriday, 05. April, 14:26 hodinky 5 months 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.

    Zabiják klíčů

    525 Posts

  • #6, z LupaShivaFriday, 05. April, 14:55 hodinky 5 months 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

    Fanoušek fóra

    134 Posts

Napsat příspěvek