How do I fix my dialog system?

0 favourites
  • 2 posts
From the Asset Store
Template for a generic save / load system, fully documented in comments and video
  • Hello there!

    I always very happy to post something here, the community is very helpful so thank you!

    NB: My project size is 1780x480 and my viewport is 854x480

    First, I created events to position my dialog UI elements like this:

    The first dialog is triggered by the appearance of NPCs with animations like this:

    I created a dialog system like this:

    And it works perfectly fine!

    I tried to use the same system logic for the second dialog:

    What works fine:

    - the NPC appears and the change in animation is triggered

    - the dialogbox2 appears where it should and display the first line of the correct dialog array

    What goes wrong:

    - the avatars do not appear

    - pressing the spacebar doesn't make the dialog progress

    What I did to try and fix the issues:

    - I tested the signal "foxdialog2" by trying to make a another text object appear but it seems like this signal is not sent and I really do not know why.

    - I tried to position the avatars according to the first Text object and they appeared but they do not appear if I redo it according to the second text object

    - I checked the order of events to make sure the Text object was position before the avatars, and that the action to send the signal was the first one (not to be disturbed by the start of an animation)

    - I checked the parallax of my UI layer and it is set to 0%x0%

    - I checked visibility issues (initially visible is unchecked, layer visibility is on, no opacity change and Z order)

    So there are two persisting issues:

    - the avatars not being displayed

    - the second dialog not progressing

    I am an absolute beginner and I tend to Frankenstein things up so maybe it's just that I created conflicts and should redo the whole thing!

    Curious to know what you think and to test your suggestions!

    Thank you in advance :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I can see what you've gone for and I would also be taking a similar approach with an array with locator id but it will need some tweaks, specifically you should not go for this idea then use a new variable for each dialogue and a new text object also.

    - Use the same text object for dialogue and set its position to the npc you are near. Set text to npc, not npc to text...

    - For dialogue use one global variable that tracks the array position, not a different variable for each npc or dialogue...

    - Possibly make use of an npc family so you can reference 'npcs' instead of individual ones. This way you can pick out a single npc to set visible and make the rest invisible in one event...

    Also I think you missed off a part of the event in screenshots as I didn't notice anywhere you increase the position variable to move through the dialogue. My guess it is the last one where you press spacebar but you didn't show the full event.

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