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)!
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.
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.
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.
@JRVEGAART mas speed? Do you mean max. speed?
Tested it, but
after the dialogue is done i can’t move the player away.
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!
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…
Hmm, how can i do it with 2 text objects?
Like i “learned” within the YARNeditor there is the question and then multiple options in one .json file as answers to choose.
I have looked at the big yarn example but still can’t get it to work.
So my problems still exist.
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?
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.
I had spaces and a paragraph (empty line) in yarneditor.
How was I supposed to know that?!