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!


FrontRunnin1Big Sky
my bullets aren't connecting to hit the enemy ship just going right through them how do I get them to connect I quickly scanned through everything seems to add up to what you got, but when I do a custom event of updating your says always mine says when updating I don't know if that even correlates to this function I am going to try to look for the connection of the enemy ship and the bullets connection to the enemy ship, but since I haven't found it yet, I may not figure it out, if you can please help me solve this issue so I can play the game on my desktop
0 1 month, 3 weeks ago
Took me about 2 hours and 30 minutes to complete this. The challenges will def take a long ass time,
1 3 months, 1 week ago
After many hours and getting help from the others online, I have finally completed the challenges and added a couple of my own adjustments!
1 5 months, 5 days ago
How can I give a command that when the enemy dies the game starts from scratch with life 4 the points in 0 what happens to me is that when I lose in the game and I return to the start menu I appear the lives in 0 help me

0 5 months, 2 weeks ago
soy el unico que en el juego le va bien

0 5 months, 3 weeks ago
Mr Dragon
-2 8 months, 6 days ago
Brighter Horizon
After completing challenge 3, I felt so proud I literally ran around the house screaming. Because at this moment I knew... I had accomplished something.
3 1 year, 4 months ago
Help! When I publish the game I can not open it! Where is the problem?
1 1 year, 6 months ago
Nevermind I fixed this issue, I had the same event twice xD
0 1 year, 6 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 1 year, 6 months ago

Sign In to Comment