Whatever you want to call it, a complete Flash game is going to need an user interface that kicks off the game. A place where the user can get more information about the game, see the credits, save the game, load the game, whatever needs to be done. The Menu the starts the game provides this functionality. So how are we going to do it? Well, you’re probably thinking this is a simple task, and it is. We’re going to make it a step simpler by creating a base menu class that we will extend in all our other menu classes. This base class will keep some of our core functionality so we don’t have to write transitions for each class uniquely.
This is a super valuable tip that has saved me a lot of time and headaches when starting a new project. Do you often find yourself copying frameworks like Tweener, Papervision, Box2D, as3CoreLib, and all the many others into the directory of your latest project? It get’s annoying eh? Well there is a quick and very easy way to solve this problem so you don’t have to always copy them everytime you start a new project.
One of the number one ways you can make money off your Flash game is to get a sponsor. One of the number one ways to get a sponsor is http://flashgamelicense.com. That said, if you get a sponsor they are going to want their advertisement at the beginning of your Flash game. Now honestly, this is probably one of the simplest things you can do with Flash. I mean all we are doing is showing their advertisement, which is likely a MovieClip, and then jumping on to our game. But the thing is, you could sell your game to multiple sponsors. You are going to need a quick and easy way to show of the sponsors advertisement and your advertisement without having to change your whole game every time. So today we are going to write a quick simple class to go through and play all our sponsor and credit MovieClips before our game starts.
We’re going to talk about the first thing you see in every good flash game you’ve played, the preloader. Without the preloader your audience will likely leave your game after staring at a blank screen for too long. So the feedback given from a preloader that tells the user, “Hey, the game is loading. Be cool wait a second and we’ll be ready to go” is vital. And since this is the largest single page tutorial on As Gamer to date, you’ll definitely get the information you need.
So what is 9-Slice Scaling? Well, it’s a way of dividing a MovieClip up into 9 seperate pieces in order to maintain the shape of the corners and repeat the sides. This will be a quick tutorial that will explain to you exactly how it works. I may refer to it from time to time as a scale9 grid. I’ve heard it called each so just remember that a 9-slice scaling MovieClip is the same a scale9 grid MovieClip.