Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Stencyl Essentials

You're reading from   Stencyl Essentials Build beautiful, unique, cross-platform games rapidly with the free Stencyl 2D game engine and toolset

Arrow left icon
Product type Paperback
Published in Apr 2015
Publisher
ISBN-13 9781784399450
Length 206 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
 Sneyd Sneyd
Author Profile Icon Sneyd
Sneyd
Arrow right icon
View More author details
Toc

Importing the font


Before we can render the score for our game to the HUD layer of our game, we need to import the appropriate font, otherwise Stencyl would use the default font, which would look pretty drab and boring. To import and configure the font, we need to follow these steps:

  1. In the Dashboard tab, under RESOURCES, go to Fonts, and click on Create New.

  2. Name your new font Western Font, and click on Create.

  3. Under Font Style, click on Choose, as shown in the following screenshot:

  4. A file browser will appear. Navigate to and select Game Assets/Fonts/GRINGONIGHTS.ttf.

  5. Set Size to 30, as shown in the previous screenshot.

  6. Click on the Color tab, then on the Color swatch, and set it to Light Orange, as shown in the following screenshot:

  7. Next, switch to the Effects tab, and under the Stroke tab, change Color to black, then set Size to 1, as shown in the following screenshot:

Excellent! Our font is imported and ready for use. The next thing we need to do is create the logic that will detect collisions...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images