Page 1 of 1

Dialogue System + TopDown Engine

Posted: Sun Oct 18, 2020 2:45 pm
by Pendergast
Hello,

So, these days, i had a lot of trouble trying to use the bubble UI for my project. I want to make all the dialogues and the choices of the player showing inside a bubble, above their head. I'm using TopDown Engine as the main asset of the project.

After a lot of attempts and reading on the forum, i still can't make it work.

I followed the dialogue system manual and then that post, but it "works" only for the NPC... At first, the bubble wasn't showing up, then i tried to change the sorting layers and i finally got that:

Image

So it's too small and i don't understand why (sorry, i am still new to unity).

I tried many things then, like using all the bubble extra and nothing worked (it even makes the NPC bubble desepear).

I was wondering if it was because of something from TopDown Engine, or just me who's doing nonsense (i am still new to unity, and french, so it's a lot of pain for me right now :lol:)

Also, i wanted to know how to make TextAnimator works with the asset ? I think i requiere TextMeshPro.

Thank you in advance for your help !

Re: Dialogue System + TopDown Engine

Posted: Sun Oct 18, 2020 4:07 pm
by Tony Li
Hello,

Make sure to follow the TopDown Engine Integration instructions. Also play the "DS TopDown Example" scene to get an idea of what the integration can do.

To make the bubble show up for the player, add a bubble subtitle panel using the same steps as that post:

1. Add this prefab as a child GameObject of your player prefab:

Plugins / Pixel Crushers / Dialogue System / Prefabs / Standard UI Prefabs / Template / Bubble / Bubble Template Standard UI Subtitle Panel

2. Add a Dialogue Actor component to your player prefab.
  • Set the Actor dropdown to the Player actor.
  • Change Dialogue UI Settings > Subtitle Panel Number to Custom.
  • Assign the Player's child Bubble Template Standard UI Subtitle Panel to the Custom Subtitle Panel field.
To make the bubble bigger, inspect the prefab. Change the Rect Transform component's Scale > X and Y values. For example, change the X and Y values from 0.005 to 0.05 to make it 10x bigger.

Re: Dialogue System + TopDown Engine

Posted: Mon Oct 19, 2020 10:21 am
by Pendergast
Thanks for the quick answer !

I can't use the TopDown Engine demo, there's a lot of errors and i don't know how to fix them :

Image

As for scalling the bubble and showing the player bubble, it worked, thanks !

Re: Dialogue System + TopDown Engine

Posted: Mon Oct 19, 2020 10:22 am
by Tony Li
Hi,

What versions of Unity, TopDownEngine, and the Dialogue System are you using?

Re: Dialogue System + TopDown Engine

Posted: Mon Oct 19, 2020 1:00 pm
by Pendergast
I'm using all the latest versions of Unity (2020.1.9f1), TopDown Engine (1.9) and Dialogue System (2.2.12). : )

Re: Dialogue System + TopDown Engine

Posted: Mon Oct 19, 2020 7:40 pm
by Tony Li
Hi,

Please import the updated "TopDown Engine Support" package located in Assets / Plugins / Pixel Crushers / Dialogue System / Third Party Support.

Re: Dialogue System + TopDown Engine

Posted: Tue Oct 20, 2020 6:04 am
by Pendergast
I didn't see that it was directly included, thank you very much ! And sorry for the dumb questions i asked, haha !

Re: Dialogue System + TopDown Engine

Posted: Tue Oct 20, 2020 9:18 am
by Tony Li
No problem. If any other questions come up, please feel free to ask any time.