Couple little issues with animating subtitles

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
hipsterdufus
Posts: 97
Joined: Thu Aug 12, 2021 6:39 pm

Couple little issues with animating subtitles

Post by hipsterdufus »

Hello! I have a couple little issues I'm hoping to be able to fix. One is, I have a conversation where I added the sequence Continue()@Message(Typed) to the first node. The next nodes are possible responses for the player to choose. It works fine except for the first time the conversation is started. On the first time it brings up the responses right away. I checked the info logs and on the first time it calls Continue() right away after Continue()@Message(Typed). Subsequent conversations work fine, with the Continue() waiting until the text is done typing. Any ideas why it's behaving like this? Maybe there's a little bug with the Typed message?

Second little issue is, I'd like to display a popup dialogue for the user with some text and a couple of response options for the user. The problem I'm having is I can only get the dialogue system to display the subtitle, then display the response menu buttons afterwards. So if I have any animation on the subtitle, that will have to play, then the animation for the responses has to play. When I removed animations, there's still a very slight delay where the response options appear just after the subtitle. It works but I think it looks a little cheap. If I put a Continue() in the first node, the question text doesn't appear at all because the node just gets skipped over. Do you think there's any way to get both the question and response options to appear at the same time? I guess it's a limitation of the system that the conversation has to flow through from one node to the next so there will always be a slight delay? I can make the UI myself but I wanted to use the Dialogue System for this since I find it easier to execute arbitrary functions right in the conversation as opposed to adding scripts for each possible popup and hooking everything up.

Thanks for all your help.
User avatar
Tony Li
Posts: 22158
Joined: Thu Jul 18, 2013 1:27 pm

Re: Couple little issues with animating subtitles

Post by Tony Li »

There may be an issue with your dialogue UI. As a test, can you assign one of the prefab UIs, such as Basic Standard Dialogue UI, to the Dialogue Manager's Dialogue UI field?

To show the response menu immediately, try setting the text dialogue entry's Sequence to: Continue()@0
hipsterdufus
Posts: 97
Joined: Thu Aug 12, 2021 6:39 pm

Re: Couple little issues with animating subtitles

Post by hipsterdufus »

Thanks. When I use the Basic Standard Dialogue UI it started working after I set the character in the conversation to someone with a portrait. Unfortunately I still can't get it to work off the bat with my UI so apparently I did something wrong. Maybe it has to do with the character portraits because I'm trying to enable and disable them in the On Open event in the different subtitles. There's no other way to turn off the name tags for certain subtitles without manually doing so right? I don't know if it really has anything to do with my problem though. I'll have to try fiddling with it until it works.

The Continue()@0 works for my other issue though.

Thanks.
User avatar
Tony Li
Posts: 22158
Joined: Thu Jul 18, 2013 1:27 pm

Re: Couple little issues with animating subtitles

Post by Tony Li »

What are you doing in the OnOpen() event? Is it hooked up to some custom code that does something?

If you'd like me to take a direct look at any point, feel free to send a reproduction project to tony (at) pixelcrushers.com.
hipsterdufus
Posts: 97
Joined: Thu Aug 12, 2021 6:39 pm

Re: Couple little issues with animating subtitles

Post by hipsterdufus »

I spent a bunch of time messing with settings and I found that I can fix the issue just by switching from TextMeshPro & Typewriter back to regular Text & Typewriter. So I tried changing the basic standard dialogue ui prefab to use TextMeshPro to see if it would break but it doesn't. I'm not sure what's so unique about my UI. I'll play around with it more later.
User avatar
Tony Li
Posts: 22158
Joined: Thu Jul 18, 2013 1:27 pm

Re: Couple little issues with animating subtitles

Post by Tony Li »

Hi,

Untick the typewriter effect's Play On Enable checkbox. As soon as the typewriter is enabled, it starts typing its current Text content (which is blank). But then the subtitle panel tells it to stop and type the actual subtitle text. So it stops, sends 'Typed', and then starts typing the subtitle text. If you untick Play On Enable, it won't send that errant initial 'Typed' message.
Post Reply