DE EN FR ES IT CZ
Zurück Nach oben

How do I make a dialogue box?

  • #1, by stinkysmelly 6 months ago Zitieren
    I tried finding this topic but every example I found was people talking about displaying the text above the characters head while they walk around, my project is in a first person pov and I want a text box to pop up when they interact with things such as looking at things or using them. I included a quickly made reference for what im talking about. Im pretty new to Visionaire and to game development as a whole so I dont know all the technical words or anything so any help would be appreciated.
  • #2, by naofumi-sama 4 months ago Zitieren
    you're doing a first-person point-of-view, the standard "character overhead text" definitely won't work for you. The easiest way to achieve this classic visual novel/first-person pop-up box without getting too deep into the coding weeds is by combining an Interface with Narration Text.


    1. Set Up Your Text Box Graphic
    • First, we need to tell the engine that your text box exists as a piece of the screen's UI.
    • Head over to the Interfaces section in the editor and create a new interface (let's name it Text_Box).
    • Set your blue pop-up design as the background image for this interface.
    • Position it exactly where you want it to appear on the screen (e.g., bottom center).
    • Leave it hidden by default (don't set it to show permanently).

    2. Build the Object Interaction
    • Now, when you want the player to "Look at" or "Use" something, go to that object's action list and add these action parts in this exact order:
    • Show/Hide Interface: Set this to Show your Text_Box interface.
    • Display Narration Text: Instead of using "Display Text" (which tries to attach to a character), use the "Narration" version. This action part lets you manually punch in the X and Y coordinates. Tweak those numbers so the text perfectly overlays your blue box.
    • Show/Hide Interface: Set this to Hide your Text_Box interface.

    Regards, nullsbrawl