Page 1 of 1

2D integration

Posted: Mon Jul 27, 2020 6:18 pm
by seifk10
Having trouble integrating the Dialogue system for a 2D game.
I'm able to get the player to interact and bring up the dialogue for an NPC but I'm having difficulties:

- getting the dialogue to skip to the end on the first 'X' press and continue to the next dialogue on Second 'X' press
- getting the reply options to be navigated and via the arrow keys and selected via the 'X' key (my game doesn't use the mouse at all)

I tried digging through the documentation but I didn't have any luck. Any help is appreciated.

Re: 2D integration

Posted: Mon Jul 27, 2020 8:17 pm
by Tony Li
Hi,
seifk10 wrote: Mon Jul 27, 2020 6:18 pmI'm able to get the player to interact and bring up the dialogue for an NPC but I'm having difficulties:

- getting the dialogue to skip to the end on the first 'X' press and continue to the next dialogue on Second 'X' press
1. Inspect the Dialogue Manager.

2. Set the Display Settings > Subtitle Settings > Continue Button dropdown to Always.

3. Tick the Dialogue Manager's Input Device Manager > Always Auto Focus checkbox.

4. Make sure your dialogue UI's subtitle panel(s) have continue buttons, and those continue buttons have StandardUIContinueButtonFastForward scripts. The Basic Standard Dialogue UI prefab is a good example to follow:

continueButtonFastForward.png
continueButtonFastForward.png (82.05 KiB) Viewed 571 times

5. Select menu item Edit > Project Settings. In the Input section, map the 'X' key to the 'Submit' input:

inputManagerX.png
inputManagerX.png (64.67 KiB) Viewed 571 times
seifk10 wrote: Mon Jul 27, 2020 6:18 pm- getting the reply options to be navigated and via the arrow keys and selected via the 'X' key (my game doesn't use the mouse at all)
Ticking Always Auto Focus and mapping 'X' to 'Submit' should take care of this, too.

Re: 2D integration

Posted: Mon Jul 27, 2020 9:17 pm
by seifk10
worked like a charm!!! Thank you very much!

Re: 2D integration

Posted: Mon Jul 27, 2020 9:24 pm
by Tony Li
Happy to help!