94,939

Views

Beginner

Level

73

Comments

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.

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

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.

 

Challenges

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!

73 Comments

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.
0 7 months, 3 weeks ago
IiITesTerIiI
Help! When I publish the game I can not open it! Where is the problem?
0 9 months, 1 week ago
cadette
Nevermind I fixed this issue, I had the same event twice xD
0 10 months, 3 days ago
cadette
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 10 months, 6 days ago
StencylNerdyDude
Somebody please help me on the challenges, I'm stuck and I'm angry. Please help!
-1 1 year, 3 weeks ago
ezhradm
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 1 year, 1 month ago
mjerry2k60
Edgar2025 hope this still helps. You can publish your game to web with starter stencyl version.
-2 1 year, 2 months ago
Edgar2025
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?
3 1 year, 2 months ago
erixa82
@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 1 year, 2 months ago
Abats
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 1 year, 2 months ago

Sign In to Comment