DE EN FR ES IT CZ
Back Back to top

Adaptive dialog area

This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials

  • #1, by Gog0 12 years ago Quote
    Hi!

    I'm working on a project with lots of dialogs (who's not in an adventure game? grin). The dialog area is fine, but I'd like to do something without scrolling system and with a dialog area having the right size considering the number of dialog options (I want to avoid big void space when I only have two dialog options).

    That's what they are doing on deponia, but I wonder how they did that. Is it possible to change the dialog area image dynamically using a script, depending of the number of options? Or should I have no background for the dialog area and execute actions during dialogs to show the right image from a set of all the possible sizes for the area ?

    What would be the cleanest and simplest solution ? Any idea ?

    Do not hesitate to ask more informations if I'm not clear with what I'd like. My english isn't perfect roll

    Thanks smile
  • New to Visionaire Studio?

    Create point and click adventures without coding. The free version covers up to 25 scenes per project. For more scenes or to earn money with your game, you need a license.

    See the Indie Bundle Try it for free
  • #2, by afrlme 12 years ago Quote
    I've only played the first Deponia game - so far. Hmm I believe they used a script that determined the offset of the background image or maybe another image/animation inside of an interface based on the active dialog options found in the VGameDialog data structure table.

    Exactly how they did that, I can not tell you off the top of my head; not without testing it out myself, but... that's not my job.
  • #3, by SimonS 12 years ago Quote
    They actually made a script that counts the dialog options and sets the dialog area accordingly. Takes quite a hassle, because you must evaluate the condition and hierarchies. Maybe I'll look it up later today grin
  • #4, by Gog0 12 years ago Quote
    Haha, of course it's not. Was just asking for tips or ways to explore just in case anyone already worked on this, not a ready-made solution.

    Reading the Lua docs since few days but havent tried anything yet with it, it will be my first attempt. I'll share my solution there if I manage to do something not too dirty ^^

    Edit : missed your post by few minutes SimonS ^^ That's the idea I had in mind too, so I'll have a look too smile Anyway, thanks to the two of you for your answers.
  • #5, by afrlme 12 years ago Quote
    “
    They actually made a script that counts the dialog options and sets the dialog area accordingly. Takes quite a hassle, because you must evaluate the condition and hierarchies. Maybe I'll look it up later today grin
    „


    I looked & it looks bloody awful. I'm wondering if they made it more complicated than it needed to be...