Page 2 of 2

Re: Animator state issues

Posted: Thu Apr 01, 2021 2:33 pm
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.

Re: Animator state issues

Posted: Thu Apr 01, 2021 2:54 pm
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.

Re: Animator state issues

Posted: Thu Apr 01, 2021 3:10 pm
by Tony Li
Hi,

Use a Proximity Selector.

Image

If you're making a 2D project, see here also.

Re: Animator state issues

Posted: Thu Apr 01, 2021 3:28 pm
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?

Re: Animator state issues

Posted: Thu Apr 01, 2021 3:39 pm
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

Re: Animator state issues

Posted: Thu Apr 01, 2021 3:48 pm
by Tony Li
Glad to help!