Animator state issues

Announcements, support questions, and discussion for the Dialogue System.
User avatar
Tony Li
Posts: 22037
Joined: Thu Jul 18, 2013 1:27 pm

Re: Animator state issues

Post by Tony Li »

Hi,

Add a Dialogue System Events component to your player GameObject. Configure the OnConversationStart() event to disable your player movement component(s) and OnConversationEnd() to re-enable them. For more details, see the bottom part of the Interaction Tutorial.
soniclinkerman
Posts: 82
Joined: Wed Mar 31, 2021 6:48 pm

Re: Animator state issues

Post by soniclinkerman »

Got it! Didn't realize it was similar to Unity's traditional "on Click" event so was a pretty easy click haha.

Real quick, is there a way for text to appear when close to a character?

Here's what I mean,

Once I'm close to the NPC, how can I display a gameobject that contains text and images that lets the player know they must press the specific button I key bind in order to talk

I understand that I can duplicate the Wheel GUI and just make changes from there, but why is it once dialogue. is active, the label is still visible?

I imagine I could turn off the trigger and turn it back on like I did with the Player movement, but just wanted to see if there was something built in.
Last edited by soniclinkerman on Thu Apr 01, 2021 3:10 pm, edited 1 time in total.
User avatar
Tony Li
Posts: 22037
Joined: Thu Jul 18, 2013 1:27 pm

Re: Animator state issues

Post by Tony Li »

Hi,

Use a Proximity Selector.

Image

If you're making a 2D project, see here also.
soniclinkerman
Posts: 82
Joined: Wed Mar 31, 2021 6:48 pm

Re: Animator state issues

Post by soniclinkerman »

Sorry, I think there's some misunderstanding.

I understand how to use the proximity selector, but I was curious how I could change the part where it tells the user how to "interact". Like the GUI I believe it's called.

I was able to make some small edits to it by duplicating the prefabbed demo one though.


I should be able to change characters portraits if i want to correct? Depending on the dialogue. I assume, I need to connect an animator yes?
soniclinkerman
Posts: 82
Joined: Wed Mar 31, 2021 6:48 pm

Re: Animator state issues

Post by soniclinkerman »

**Update**

Was able to get my issue sorted out and change panel images with sequence.

Thank you so much for your time and help Tony! This service was well worth the purchase :D
User avatar
Tony Li
Posts: 22037
Joined: Thu Jul 18, 2013 1:27 pm

Re: Animator state issues

Post by Tony Li »

Glad to help!
Post Reply