I keep relying on your help.
When using only the main title, no issues occur. However,
when I set conversation styles for each character and design the Timeline,
the portrait images overlap.
(It’s like the character conversations in Undertale.)
I keep relying on your help.
When using only the main title, no issues occur. However,
when I set conversation styles for each character and design the Timeline,
the portrait images overlap.
(It’s like the character conversations in Undertale.)
I think you might be hitting a bug in Dialogic itself. The plugin still bundles Dialogic 2.0 Alpha 16, and that version leaves the previous speaker’s portrait under the new one when characters have their own styles (portrait overlapping · Issue #2458 · dialogic-godot/dialogic · GitHub). It was fixed in Alpha 17.
I applied the fix so please update the addon and see if that worked.
Thanks for tracking this down to the Dialogic version. Updating the addon and retesting with per-character styles sounds like the right next step.
Thank you!
I’ve tested it and confirmed that the portraits overlap without any issues.
During testing, though, I noticed that text style changes seem to briefly load the previous setting. Is this by design?
For example, if:
Character A has font size 30
Character B has font size 15
then when the timeline changes from A to B, it briefly looks like the text is still at A’s font size of 30.
From what I’ve found, this part isn’t from the update. It’s how Dialogic changes styles. When the next line is from a character with a different style, Dialogic throws away the old text box and builds a new one for that character. Before the new line starts typing, it puts the last line back into the new box for a moment. So for a split second you might see A’s old line before B’s line starts.
What I can’t tell yet is what you’re seeing in that moment. Is it A’s old words, or B’s new words showing at size 30? A short video would help a lot.
Also, how did you make the two styles? From a preset, or by making one inherit from another style? If both styles inherit from the same style, I think I can make Dialogic keep the same box and just change the size, so nothing flashes.
I’m wondering if the copied styles are causing it. A copied style counts as its own separate style, so when the speaker switches, Dialogic throws away the whole text box and builds a new one. If both styles inherit from the same base style, Dialogic keeps the same text box and only applies the changed settings, like the font size.
What if you tried remaking the character styles as inherited styles? In the Styles tab, select main_style in the list, click the + button and pick “Inherited Style”. Then rename it, change only the font size, and set it as that character’s style again. Do the same for the other character. The Duplicate button makes a standalone copy, so I’d skip that one for these.
Let me know if the flash is still there after that!
I tried it, but the same issue persists.
Also, after trying various things, I found that inserting a weight of 0.1 displays it without any problems,
so I think I’ll proceed with this approach for now. (Is it an issue with frame processing?)
Good find with the 0.1 wait, and I think you’re right that it’s a frame timing problem. When the speaker changes style, Dialogic applies the new style first and waits one frame before writing the new line. For that one frame the previous line is still in the box with the new style. In your screenshots that’s the frame with めめめ’s name over きゃん’s line at the bigger size. The wait avoids it because the Wait event’s “Hide text box” option clears the box before the style changes.
That also means my inherited style idea couldn’t have helped, sorry about that. Inherited or copied, the new size gets applied to the old line either way.
This happens in the newest Dialogic too, so I’m going to try patching it into the next Baz Dialogic Link update, so the style change and the new line land on the same frame. Until then the 0.1 wait is a good workaround. Just keep “Hide text box” checked on it or the flash comes back.
I patched it in Baz Dialogic Link v1.2.4 so the style change and the new line land on the same frame:
Replace your addons/dialogic folder with the one from the release and you should be able to remove the 0.1 wait. Let me know if the flash is still there after updating!