As of late 2021, we are in the process of updating Stencylpedia and fixing up outdated & broken content. Thanks for your patience!

129,744

Views

Beginner

Level

13

Comments

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.

http://static.stencyl.com/help/images/cc2_create_font.png

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!

13 Comments

FBarajas21
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 10 years, 6 months ago
imkvan
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 12 years, 2 months ago
way2insane
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 12 years, 3 months ago

Sign In to Comment