Custom typewriter

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Angry Bugs
Posts: 3
Joined: Fri Jul 23, 2021 12:39 pm

Custom typewriter

Post by Angry Bugs »

Hi,

I've been using the free version of the Dialogue system for a little while, so far I like it a lot, but I have a couple of questions about some features.

1) Is it possible to have a single word of a text doing an animation in the "Subtitle Text" using textmesh pro?, or different words doing different animations, after all the text is shown?

2) I'm trying to make a custom typewriter that show some words with the normal effect, character by character, and some other words showing them at once, and perhaps shaking the gui at the same time to put in more emphasis on them.

Is this the right approach? I can show word by word, but still have trouble showing some part of the text with a different animation. Thanks in advance!

Code: Select all

 public override void StartTyping(string text, int fromIndex = 0) {   
        var words = text.Split(' ');        
        StartCoroutine(TypeWordsCoroutine(words));
    }


    private IEnumerator TypeWordsCoroutine(string[] words) {
        string allWords = string.Empty;
        for (int i = 0; i < words.Length; ++i) {
            for (int j = 0; j < i; j++) {
                allWords += words[j] + " ";
            }
            base.StartTyping(allWords, allWords.Length);
            allWords = string.Empty;
            yield return new WaitForSeconds(2);
        }
    }
User avatar
Tony Li
Posts: 21989
Joined: Thu Jul 18, 2013 1:27 pm

Re: Custom typewriter

Post by Tony Li »

Hi,

Consider using Text Animator. The Dialogue System has Text Animator integration. I see that Text Animator is currently 50% in the Asset Store sale, too. Text Animator can animate individual words.

Note that Text Animator requires TextMesh Pro. The trial version of the Dialogue System is compiled without TextMesh Pro support since we can't guarantee that everyone's project uses TextMesh Pro. So you'll need to use the Asset Store version of the Dialogue System. (But you're in luck again, as the Dialogue System is also 50% off right now.)
Angry Bugs
Posts: 3
Joined: Fri Jul 23, 2021 12:39 pm

Re: Custom typewriter

Post by Angry Bugs »

Thank you very much, that's just what I needed, I'll get both from the store then.
User avatar
Tony Li
Posts: 21989
Joined: Thu Jul 18, 2013 1:27 pm

Re: Custom typewriter

Post by Tony Li »

Sounds good!

You can see some examples of Text Animator in the Dialogue System in games such as Heart Is Muscle. Many other games use Text Animator with the Dialogue System, too, but Heart Is Muscle sticks in my memory as one that often animates single words.
Angry Bugs
Posts: 3
Joined: Fri Jul 23, 2021 12:39 pm

Re: Custom typewriter

Post by Angry Bugs »

Awesome, thank you very much.
Post Reply