Dialogue System Template (Templates)

  • Hey- I still have this working great in my game project- but I started using it in a new game project and set it up the same way.

    For some reason it loads a segment of the dialog and freezes- any idea what might cause this? I used the examples given as well and the same thing happens- It loads the first bit and stops / freezes.

  • I figured it out- I put it in a spot that kept calling it so it was opening multiple instances on itself

  • Classic mistake! It's easy to overlook the source of the problem and search in vain elsewhere. However, the system was doing what it was told to do, which was what was wrong in the first place. Goob job on finding it so quickly!

    How is your sci-fi game doing? I hope you're still motivated to finish it, it looked really promising!

  • Hey Magistross great plugin!

    Took me a lot of time to figure this out but finally feels like I'm getting it to work. I have one big question.

    When creating the dialogues with your Utility my logic tells me I should save the whole thing as a JSON file but it doesnt work. However if I press on Download Dictionary it does work.

    Problem im finding is I can't set the portraits to display. I created new sprites for the portrait and named them. Then used the same name in your utility and it wont load them. Is this the correct way to do it? If so why isnt it working?

    Thank you

    EDIT: Fixed protraits. Found out I just have to add it to the animation frame. Not a new sprite.

  • Great that you figured it out. Do you still have trouble with the saving functionality? "Download dictionary" is actually the way to go, unless you want to download a single dialogue for a particular need.

    I remember having trouble downloading with Internet Explorer, the "Save as JSON" did not work properly on some older version. Could it be what's happening?

  • How is your sci-fi game doing? I hope you're still motivated to finish it, it looked really promising!

    Yes! I am- but its going to be a bigger game. I am making a smaller game in the process to develop a map system that I will incorporate into the bigger game that you saw. I do plan on finishing! and Thanks for asking and the compliment!

    http://www.amonthlygame.blogspot.com blogging the process of the smaller one here- only a week into it so far.

  • is there a way to use a variable in the dictionary to tell what animation and frame to use for the character portraits?

    something like charPortrait,{activeChar},{frame}

    or better yet- can I tell it what animation and frame to load?

    Right now I only see the ability to specify the sprite file to be used- can we add charPortrait("hero",2) or something like that?

    So charPortrait would be the name of the sprite- hero the name of the animation, and 2 for it to load frame 2.

    Would help me consolidate all of the assets greatly! Thanks

  • Not too sure I understood your question correctly, but here goes nothing!

    The portrait is actually a single sprite object, named "Portrait". Each animation define a single portrait, it can be animated or not, depending on your need.

    There is the premade "changeportrait" text function that change the current portrait animation. It accepts only a new animation name, but you could easily modify it to allow specifying an animation frame number. Both parameter could be provided by a variable in the dictionary.

    That said, one could also decide to bypass the portrait mechanism provided by the system and create an entirely new one using only custom text commands.

  • Yes that answers my question- Ill see if I can find it and alter the code

    I am an artist / animater learning to "code" so I may not explain things clearly for you code ninjas You got the idea of what I was trying to explain though.

    Another question- how to the touch controls work? I have "Tap Choice Mode" checked when I create the json files in your editor but the touch controls dont work. Is there something else I need to do there? Thanks!

    I can tap on this screen to get to the choice screen:

    but then at the choice screen tapping does nothing.

    Also need to make the font bigger... I wish you had a read-me instructions cheat sheet for us noobs Thanks so much for all your patience with me-

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Oops, I guess it was a bit misleading with the "Tap Choice Mode" in the editor. It's only there for preview purpose. Ticking it will change the "Dialogue_TapChoice" global variable to 1. When that particular variable is set to 1, all choice initiated will have to be resolved with a tap gesture.

    Here's one way how the "changeportrait" function could be reworked to allow changing the animation frame.

    Changing the font size is basically done by changing the spritefont's sprite, and by changing a few value here and there so the system knows about the size of characters and what not. I'll help you when you get there if need be!

    By the way, that game of yours looks pretty sick!

  • my solution for touch controls... works well enough

    now I gotta see if I can implement the frame chooser and change the font to something bigger.

    By the way, that game of yours looks pretty sick!

    Thanks man!

  • Hey Magistross is there a way to just adjust the spacing of the portrait and not the text? I mean:

    DIALOGUE_MARGIN sets the spacing withing the tiledbackground used for the "textbox" but it also moves the portraits. I want to adjust the text whenever I dont use a portrait so it doesnt look too much in the middle, but if I do so then when a portrait comes is almost on the edge, do you understand what I mean?

    Thank you

  • Could you provide a screenshot of the unwanted behavior and perhaps a picture of what should occur ?

    It's possible to change how the portrait sprite is positioned at creation. The event in question is event #15. (or close by, if our numbering doesn't match)

  • Could you provide a screenshot of the unwanted behavior and perhaps a picture of what should occur ?

    It's possible to change how the portrait sprite is positioned at creation. The event in question is event #15. (or close by, if our numbering doesn't match)

    Will try to do. Until then, I have another question. Is there a call for "on dialog "X" finished"?

    Or just a way to stop everything until the dialogue is finished

  • Is there a call for "on dialog "X" finished"?

    Or just a way to stop everything until the dialogue is finished

    If you want to stop everything else while a dialogue is running, you will have to base your game logic around some kind of boolean variable. This variable should be set to "true" on the Dialogue_StartDialogue function and to false on the Dialogue_End function. (lines 5 and 127)

    If said variable is true, stop all other game logic, disable behaviors, etc., depending on how your game is made.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)