Text in Sequences

Text tracks can be added to a Sequence through the editor. This is done by selecting the  Add a Text Track button from the Canvas Toolbox, and then clicking (and optionally dragging) in the Canvas to create a text track.

This page covers the following topics: 

Contents:

  1. Creating Text
  2. Modifying Text
  3. Font Assets
  4. SDF Effects
  5. Parameters
  6. Inspector

Creating Text

There are two ways of creating a text track. After selecting the  Text tool from the Toolbox, you can:

Modifying Text

When you create a new text track, GameMaker opens The Inspector and automatically selects the Text field, allowing you to start writing your text.

To edit the text for a track at any time, simply select that track, go into the Inspector and modify the Text field again.

Resize Behaviour

Resizing your text track in the Canvas will work differently depending on whether your text track is wrapped or unwrapped.

If unwrapped, your text track will be scaled, similar to how you scale sprites and objects. However, resizing a wrapped text track modifies its frame size instead of modifying its scale values.
To scale a wrapped text track, use Gizmos instead, or edit the values in the Scale parameter track manually.

Font Assets

Text tracks are tied to Font assets. When you create a new text track, it will look for a font asset within your project, and use the one that was last added. If your project has no fonts, it will automatically create a new font asset.

When you delete a font, all text tracks that use that font are deleted as well, so ensure you don't accidentally delete font assets that are used in Sequences.

SDF Effects

When the font asset used by a text track has SDF Rendering enabled, the text can have effects applied to it. The following effects are supported: 

When SDF is enabled, add parameter tracks to use and animate these effects. These parameters are listed in the Parameters section below.

Parameters

General

You can modify and animate all the usual parameters that are provided for a sprite track, like Position, Rotation, Scale, Origin and Colour Multiply. Using these parameters you can move and rotate your text, make it bigger or smaller, and change its colour and alpha.

Text-specific

There are some text-specific parameters provided as well, which can also be animated:

SDF

You can also modify parameters for SDF effects: 

Inspector

There are some properties that can only be changed through The Inspector. Such properties cannot be animated as they are not parameter tracks, but simple options that apply to the whole track.

NOTE The Inspector should open automatically when you create or select a text track, but if your Inspector is closed, you can open it manually from The Windows Menu at the top.

The Inspector shows you the following properties when a text track is selected:

Some of the parameter tracks (such as ColourCharacter Spacing, Line Spacing, etc.) are included here, and changing them will create a keyframe at the playhead if  Automatically record changes is enabled, or modify the selected keyframe. The rest of the options are "static" (as they cannot be animated) and are as follows:

SDF Effects

The Inspector also lists SDF effect parameters. When the Enable Effects checkbox is enabled the text will be drawn with a different shader.

If the font doesn't have SDF enabled, you'll be asked to enable it first: