2D integration

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
seifk10
Posts: 2
Joined: Sun Jul 26, 2020 9:08 pm

2D integration

Post 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.
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: 2D integration

Post 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 572 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 572 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.
seifk10
Posts: 2
Joined: Sun Jul 26, 2020 9:08 pm

Re: 2D integration

Post by seifk10 »

worked like a charm!!! Thank you very much!
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: 2D integration

Post by Tony Li »

Happy to help!
Post Reply