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







Crash Course 2: Invaders - Part 15

by Hectate (Updated on 2015-05-02)

Part 15: Final Touches

Step 102: Now that you’ve tested your game and everything works, it’s time to export it to your desktop as a SWF file. That way, you can open the file in any browser to play the game! Open the Publish menu, select Web, Flash.

Step 103: Stencyl will create a SWF file and ask you to choose where to save the file and what to name it.

Congratulations! Now that you have your Crash Course game, you can take on the Challenges that follow, and modify the Crash Course game further, or you can start on your own game! The choice is yours.

Here are a few challenges you could take on if you want to take this project further. We won't provide you with any solutions, it's up to you to figure out how to add these features.



Challenge 1: Find a way to make the Enemy Ships move back and forth on screen.

Challenge 2: Restrict how frequently the player can fire the cannon, either by setting a maximum for the number of bullets on screen or by limiting how quickly the player’s Ship can fire bullets.

Challenge 3: Make the Enemy Ships fire back at the Player.


Where do I go from here?

There's a whole lot more to Stencyl, and we encourage you to experiment on your own and read through the rest of Stencylpedia to find out how to import your own resources, create your own Behaviors, and enable Stencyl to help you create the games of your dreams.


Continue to Chapter 2

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!


Help! When I publish the game I can not open it! Where is the problem?
1 5 years, 4 months ago
Nevermind I fixed this issue, I had the same event twice xD
0 5 years, 5 months ago
Great tutorial, thanks ! But I'm kinda stuck with the third challenge. When my ship is killed, my game crashes and I obtain this error :
TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la méthode d'une référence d'objet nul.
at MethodInfo-6453()[Source/scripts/Sc eneEvents_0.hx:113]
at com.stencyl::Engine/update()[C:/Pro gram Files (x86)/Stencyl/plaf/haxe/lib/stencyl /1,00/com/stencyl/Engine.hx:2413] at com.stencyl::Engine/postUpdate()[C: /Program Files (x86)/Stencyl/plaf/haxe/lib/stencyl /1,00/com/stencyl/Engine.hx:2616] at com.stencyl::Engine/onUpdate()[C:/P rogram Files (x86)/Stencyl/plaf/haxe/lib/stencyl /1,00/com/stencyl/Engine.hx:2609]
Any idea about how to fix this ? Please.

0 5 years, 5 months ago
Somebody please help me on the challenges, I'm stuck and I'm angry. Please help!
-1 5 years, 8 months ago
All works for me, but I have one question. Why the enemies ship just destroyed when I point it in their left part? If I shot them, they didn't die. Only if I said before, must in left part. Anyone know how to fix this?
Thanks :))

1 5 years, 8 months ago
Edgar2025 hope this still helps. You can publish your game to web with starter stencyl version.
-2 5 years, 9 months ago
HELP: I have to take my game to school so that my teacher can look at it and give me a grade for it. How do I save my game in a usb or save it in somewhere so that I can open it at school?
4 5 years, 9 months ago
@highkingtorygg , for the "miniscule" sprites, make sure that when you add the frame, after you choose the image, the scale (on the top) is set to 1x BEFORE you click the Add button.
3 5 years, 9 months ago
Sad only that game testing takes a quite a time even for this small demo...
If you dont realy know what are you doing, then testing is one thing you do all the time...
Is there any faster way to test if code is right?

0 5 years, 10 months ago
Done with my first demo Crash Course game.
No errors for me! It is possible to make anything in Crash Course without errors.
Even better, made some little modifications allready ;)

0 5 years, 10 months ago

Sign In to Comment