Crash Course 2: Invaders - Part 13

by Hectate (Updated on 2015-05-02)

Part 13: Creating a Font

Step 94: Before we can show any text on screen when the player wins the game, we need to create a default Font to use. Click on the Dashboard, then on Fonts, and click the dotted line box to create a new font. Name it "Default Font". Change the settings to those shown in the following image (size 32, white for the color, Sans Serif for the font, a style of Normal, Yes for Smoothing) and save your work. Note that the Color selector is under the Color options, of course.


Now we need to create an Event that will check how many Enemy Ships are left on screen, and if none are left, it will display a "victory" message using the font we just created.

Click here to go to Part 14.

Disclaimer: Use comments to provide feedback and point out issues with the article (typo, wrong info, etc.). If you're seeking help for your game, please ask a question on the forums. Thanks!


Amazing tutorial man, so easy to understand, everything works first try, and i have version 3.5 or wtf so if someone has problem you have done wrong your self. Some pictures show little differently but you dont have to be a genius to find it otherwise.
0 7 months, 3 weeks ago
Everything is working perfectly right from the first attempt. Enemy ship is blinking then disappearing after the 3 rd bullet
0 1 year, 7 months ago
mirza128, it works perfectly fine with my game, so maybe you forgot, or misunderstood something
0 1 year, 8 months ago
What? I tried all steps correctly but when I Shoot an [ENEMY SHIP] 3 times, They just stay alive! BRUH!
Did the author of this article make a MISTAKE?

-2 1 year, 8 months ago
The picture is clearly outdated, currently using Stencyl 3.3.
0 3 years ago
@lize It is still out of date... I'm sensing a pattern... and GameMaker is starting to call me back ... must ... hold... on!
0 3 years, 2 months ago
this pic was out of date
0 3 years, 10 months ago
Where it tells you to put five, put as many ships you have put in the "scene".
Although there should be a way where the game checks if any enemies are left in the screen, as well to take an account of enemies being created during the game.

0 4 years, 1 week ago
I was wondering the same thing, way2insane. After a little fiddling around I came up with a process to have Stencyl count the number of enemies rather than inputting the number manually. I have outlined the changes you will need to make under part 14. Hope that it is helpful!
0 5 years, 8 months ago
It doesn't work if you have more than five ships...how would you implement a counter that keeps track of the actual ships left
1 5 years, 9 months ago

Sign In to Comment