Hi Tony
I searched for a similar topic but couldn't find it. and I followed this youtube Dialogue System for Unity 2.x Interaction Tutorial https://youtu.be/ZxppOvEwOaI?t=214
So I wanted to create an exclamation mark using Bark + LCB for NPC when Actor approach (so as a sign that we can interact with NPCs). There only one Bark with message : (!!)
I was successful in putting it. However, the bark depends on the duration.
Here when Actor enters an NPC's collision , the NPC displays the Bark. However, it disappears due to duration.
1. Therefore, I wanted Bark to continue showing as long as the actor inside in the NPC's collision. When the Actor exits the NPC Collision, the bark disappears immediately. How we do it?
Or, is there another way besides using the Bark system?
Thank you
Display LCB Bark without Duration
Re: Display LCB Bark without Duration
Hi,
Here are two options:
1. Instead of a bark, add the "!!" as a GameObject above the character's head, and deactivate the GameObject.
Here are two options:
1. Instead of a bark, add the "!!" as a GameObject above the character's head, and deactivate the GameObject.
- If you're using a Proximity Selector to interact with characters, add a Usable component. In the OnSelect() event, activate the GameObject. In OnDeselect(), deactivate the GameObject.
- If you're not using a Proximity Selector, add a Trigger Event component. In the OnTriggerEnter() event, activate the GameObject. In OnTriggerExit(), deactivate the GameObject.
- If you want to animate the appearance of the "!!", you can set up an animator with "show" and "hide" states. Instead of activating the GameObject, leave it active and configure the events to play the animator states.
Re: Display LCB Bark without Duration
Hi Tony,
ohh that is good idea for no 1.
I will try both options.
Thank you for the response!
ohh that is good idea for no 1.
I will try both options.
Thank you for the response!
Re: Display LCB Bark without Duration
Glad to help!