Exit from Conversation
Posted: Fri Sep 30, 2022 10:16 pm
Hello!
I've made a script in Unity that allows talking with NPCs whenever you walk into a collider area.
When the main character is in the area, you can activate the dialogue by pressing a button.
The script blocks the character animation ad controller input, then in the last sentence, it gets reactivated by interacting through the script.
When the conversation ends, the character can move again. But if I'm using an NPC dialogue, the character will move while the dialogue box is still open, it will close only if I click on Continue. If I use a dialogue option, however, the player can click on the option and the box will disappear allowing the character the move.
How can I create a dialogue block that allows the character movement ONLY after the player closes the finished dialogue?
I would like to have the dialogue behave like in any other role-playing game . Can you help me with this or suggest a smarter method? Thank you so much!
Link to the dialogues setup:
I've made a script in Unity that allows talking with NPCs whenever you walk into a collider area.
When the main character is in the area, you can activate the dialogue by pressing a button.
The script blocks the character animation ad controller input, then in the last sentence, it gets reactivated by interacting through the script.
When the conversation ends, the character can move again. But if I'm using an NPC dialogue, the character will move while the dialogue box is still open, it will close only if I click on Continue. If I use a dialogue option, however, the player can click on the option and the box will disappear allowing the character the move.
How can I create a dialogue block that allows the character movement ONLY after the player closes the finished dialogue?
I would like to have the dialogue behave like in any other role-playing game . Can you help me with this or suggest a smarter method? Thank you so much!
Link to the dialogues setup: