In this section, we will look at more complex animations from tutorials across the Cavalry community, and have a go at recreating them.
This time we will make a string of text appear to be typed onto the screen, with an accompanying flashing cursor graphic.
Begin with a text layer by Opt/Alt-clicking on the Type tool. Go to Text Shape > Shape > String and add your desired text. Here you can also set the alignment, font-family, and leading (amongst other things) to your taste.
To make the string reveal itself with a ‘type-in’ effect, you need to go Text Shape > Shape > String Manipulators > + > Resize String.
Open the attributes for the String Manipulator layer by double-clicking on it. By adjusting the String Manipulator > Percentage value you can see how this reveals the characters of your string.

Here is the attribute panel for the String Manipulator.
Keyframe this process from 0 to 100% on the timeline as desired. You could add a form of easing to this transition, or by adding more keyframes in between, you could introduce pauses or stutters to the animation.
Blinking cursor
Now lets add the cursor! Go Text Shape > Shape > Formatting Inputs > + > String. This adds an extra string to the end of your text. You can see this indicated in your original string entry box with {0}.
Go to String 2 > String and add your desired cursor character. For this example, we will add an underscore character here. There is also a Glyph panel in Cavalry where you can view and insert all of the available characters found in your chosen font. Access this under Window > Glyph Browser.
Now, to make it blink, we have another trick to learn. Go back to the attributes of the original text box and go Shape > Material Behaviours > + > Apply Text Material.

This is the attributes panel for the Apply Text layer.
Go to Apply Text Material > Behaviour > Specific Indices. Edit the text box to say last. This means that we are targeting the final character of the string, in this case, the cursor.
Now go to Apply Text Material > Fill > Alpha and adjust the opacity. You should see that the cursor character changes transparency. We want this to blink (i.e. switch between two states — on and off). So, right click where it says Alpha and go Add Behaviour > Oscillator.

Here are some of the options for our old friend the Oscillator – this time with the Wave Type changed to Square. Note the sharp rises and drops in the visualisation graph, indicating the switch between two states — there is no transitional blend here.
Finally, go to Oscillator [Alpha] > Behaviour and set the following: Wave Style = Square / Minimum = 0 / Maximum = 100 / Stagger = 0 / Frequency = 2.
My final output which adds a Glow filter… I also edited the keyframes to add a couple of pauses.
You should now have a scene typing out your text string, with a flashing underscore cursor!
—
This post covers
How to Create Typing Text with Blinking Cursor in Cavalry by Charlie Aquino




