Time for action – specifying a font for use in our game
The game file to import and load for this session is 5961_06_02.stencyl
.
Before proceeding with the following steps, we need to locate the fonts-of-afrika\Afritubu.TTF
file in this chapter's code files, which can be downloaded from the Packt Publishing website at www.packtpub.com.
Place the file in a location where it can easily be located, and continue with the following steps:
In the Dashboard tab, click on Fonts.
In the main panel, click on the box containing the words This game contains no Fonts. Click here to create one.
In the Name textbox of the Create New… dialog box, type
HUD Font
and click on the Create button.In the left-hand panel, click on the Choose… button next to the Font selector.
Locate the file
Afritubu.TTF
and double-click on it to open it.Note that the main panel shows a sample of the new font.
In the left-hand panel, change the Size option to
25
.Important: save the game!
Return to the Display Countdown event in the Score...