Dialogue with YARNeditor - issues

I’ve followed this video:

But, if i do it 1:1 my player can pass the obstacle behind the object whit what he is in dialogue (by pressing x)!:stuck_out_tongue_winking_eye:
So my external event of the player movement isn’t in between the code of the dialogue but on the beginning.
This solves the first problem!
I know, this doesn’t make sense:roll_eyes:, because it’s a door, but let us say it’s not a door it’s a person.:wink:

Now my problems are:

  • My player can move if the dialogue is showing up
  • After pressing and releasing x to display the first dialog question, I have to press x twice more (and release each time) to get the answer options displayed
  • The question are not still exist on screen when the answer options are showing
  • The player moves up/down if the anser options are showing because of choosing one with up and down keys
  • When I select an answer and press and release the x key, the answer appears as a dialog on the screen, but is immediately deleted afterwards

What i want:

  • Player should not be moved when dialogue (question and answer) is showing up
  • The question should be displayed at the top and the answer options should be displayed by pressing and releasing the x key below.
  • The answer should be displayed until the x key is pressed and released.

Open the “Dialogue tree” example project, you’ll find some answers. :slight_smile:

1 Like

for player movement, set it that the player’s mas speed = 0 when a dialogue is active. that prevents from moving. if you have it set the different animation with keys you’ll need to change it to set them depending on the force’s position.

For the options. It sounds like you are running it with the same text object, they need to be separately text object.

For pressing or releasing the x button, try choosing either pressing or releasing not both.

1 Like

@Gruk
That’s not helpful!:cry:
Can’t open examples.:flushed:

@JRVEGAART
mas speed?:thinking: Do you mean max. speed?
Tested it, but

  1. after the dialogue is done i can’t move the player away.
  2. the player can move on position he iss (up, down right, left is changing his animations).

With force i’ve tested it, same result.
Solved with max speed!:grinning:
But how can i set the players max speed to standard after the dialogue is closed?
I’ve looked what the Max.speed of the TopDownMovement behavior was and set this value manually.
This is not optimal, because if in the behavior the speed changes…:roll_eyes:

Hmm, how can i do it with 2 text objects?:flushed:
Like i “learned” within the YARNeditor there is the question and then multiple options in one .json file as answers to choose.

I suggest you make this problem your top priority :sweat_smile:
Most if not all the features of GDevelop are demonstrated in the examples, they’re very useful.

I have looked at the big yarn example but still can’t get it to work.:cry:
So my problems still exist.:roll_eyes:

I’ve done what the video above shows - step by step.
My events are looking the same, then add some things for testing if player don’t move if dialogue is running.
But why does it not work then?:thinking:

You can check this maybe helps

Sorry, but none of this (good) videos helped me, because none of shows how to fix it.

But one of my problems

After pressing and releasing x to display the first dialog question, I have to press x twice more (and release each time) to get the answer options displayed

could be fixed by myself.:grin:
I had spaces and a paragraph (empty line) in yarneditor.
How was I supposed to know that?!:roll_eyes:

But the other problems still exists.:blush:

You have to manually put back the maxspeed when you end a dialogue. An other method is to make an event with only:

when dialogue is visible maxspeed = 0 and when dialogue isnt visible maxspeed = 200

Or in the event when you are going to finish the dialogue put in the actions: maxspeed= 0

The sub event in the ‘not running dialogue event’ is supposed to be an normal event not sub event.