I'm having a problem in this project and I would like ask what am I doing wrong.
When I'm getting close to NPC, press E button don't work, I can't even see the UI.
Player and NPC characters use Corgi Engine scripts, is it uncompatible with this plugin?
I watched this tutorial and applied all steps to my game
I created new child gameobject for both player and npc called Dialogue.
Inspect your Dialogue System Events component's OnConversationStart() event. It's misconfigured.
Hello! I checked it and found that empty events cause this issue. It was Proximity.enabler true and false, somehow deleted on its own. I added back and problem fixed.
I checked both Corgi Example scene and this manual. It was helpful!
I had a little problem regarding mouse visibility. In gameplay, there's no mouse visibility. Only ESC button shows up the mouse, it opens a menu naturally. But when I'm talking to NPC, mouse still unvisible.
If you want to allow the player to click on response menu buttons using the mouse, inspect UICamera → Canvas → Fader and untick Raycast Target. Otherwise Corgi's Fader will prevent mouse input.
I did that but nothing changed.
---
Face() sequencer cause UI flip.
---
I copied 4x NPC from Corgi Example to my scene. And Zoom2D() does not work unfortunately.
---
Any ideas?
Re: OnUse() don't work in my 2D game
Posted: Fri Aug 20, 2021 9:08 am
by Tony Li
Hi,
DryreL wrote: ↑Fri Aug 20, 2021 5:05 amI had a little problem regarding mouse visibility. In gameplay, there's no mouse visibility. Only ESC button shows up the mouse, it opens a menu naturally. But when I'm talking to NPC, mouse still unvisible.
Add an MMCursorVisible component to the NPC's CorgiStandardDialogueControls child GameObject.
DryreL wrote: ↑Fri Aug 20, 2021 5:05 amFace() sequencer cause UI flip.
Add a MatchCharacterDirection component to the NPC's CorgiStandardDialogueControls child GameObject.
DryreL wrote: ↑Fri Aug 20, 2021 5:05 amI copied 4x NPC from Corgi Example to my scene. And Zoom2D() does not work unfortunately.
Corgi can use Cinemachine to control the camera. If your scene uses Cinemachine, use the Dialogue System's Cinemachine integration to control the camera (e.g., Cinemachine Priority On Dialogue Event component, or CinemachinePriority() and CinemachineTarget() sequencer commands).
Re: OnUse() don't work in my 2D game
Posted: Fri Aug 20, 2021 12:02 pm
by DryreL
Hi,
Thank you for your help!
- MMCursorVisible cause instant on/off cursor visibility. Like flickers. Didn't solve the problem, still needs adjustments. What should I do?
- MatchCharacterDirection solved the problem!
Last one didn't fix the problem or I didn't manage to do that. Can you check it?
Yes, I'm using Cinemachine. It's enabled by default on Corgi Engine.
I added Cinemachine Priority On Dialogue Event component to NPC's CorgiStandardDialogueControls child GameObject.
And this is the Sequencer on Dialogue.
Zoom animation don't work.
---
I have plans for multiple language and I need word wrap option to make it automatic for me.
At the moment, it shows one paragraph and seems really bad, out of resolution.
How can I enable word wrap?
Thanks in advance!
Re: OnUse() don't work in my 2D game
Posted: Fri Aug 20, 2021 12:41 pm
by DryreL
Hi,
Also I tried to add TextMeshPro to CorgiStandardDialogueControls.
I created TMP version of Subtitle Line child object (Subtitle Line TMP), however cannot drag and drop it to CorgiStandardDialogueControls' Subtitle Text element, because there is no "None (TMP UGUI)".
I unpacked the prefab, still didn't show up.
It seems strange, I was able to do that in Dialogue Manager's Canvas, but not this one. Need help again!
Re: OnUse() don't work in my 2D game
Posted: Fri Aug 20, 2021 1:04 pm
by Tony Li
Hi,
DryreL wrote: ↑Fri Aug 20, 2021 12:02 pm- MMCursorVisible cause instant on/off cursor visibility. Like flickers. Didn't solve the problem, still needs adjustments. What should I do?
Try ticking the Dialogue System Trigger's Show Cursor During Conversation checkbox.
DryreL wrote: ↑Fri Aug 20, 2021 12:02 pmAlso I tried to add TextMeshPro to CorgiStandardDialogueControls.
...
I created TMP version of Subtitle Line child object (Subtitle Line TMP), however cannot drag and drop it to CorgiStandardDialogueControls' Subtitle Text element, because there is no "None (TMP UGUI)".
Did you unassign the Text element?
Re: OnUse() don't work in my 2D game
Posted: Sat Aug 21, 2021 4:17 am
by DryreL
Hi,
Thanks for your help!
Tony Li wrote: ↑Fri Aug 20, 2021 1:04 pm
Try ticking the Dialogue System Trigger's Show Cursor During Conversation checkbox.
I tried now, but it still same. Cursor visibility flickering. Pause menu has no issue with cursor visibility, always on. In gameplay, it has problem. I wonder why it didn't solve the problem.
Tony Li wrote: ↑Fri Aug 20, 2021 1:04 pm
Zoom2D() is not compatible with Cinemachine. You must use the Cinemachine commands instead, such as CinemachinePriority().
Oh okay. I changed Zoom2D to CinemachinePriority but no luck. Can you explain it step by step please?