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:
Western Font
, and click on Create.Game Assets/Fonts/GRINGONIGHTS.ttf
.30
, as shown in the previous screenshot.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 between the Player Character and the coins, delete the Coin actor and increment the score, and ultimately render it to the screen using the font we just imported.
18.118.140.204