Member You
#1 in Business Subscribe Email Print

You are here: Home > Computers and Technology > Games > Quick Article On Making A Flash Game

Tags

  • maybe
  • agencies
  • braces
  • enforcement agency
  • symbol alternatively
  • container thats

  • Links

  • Don't Try to Make Your Workers Happy
  • Global Warming Predicts Alligators in North Dakota Within 1 Year
  • Spirals of Life
  • Member You - Quick Article On Making A Flash Game

    Eight Reasons to Increase Backup Spending When the Economy Slows
    Eight Reasons to Increase Backup Spending When the Economy Slows   by Bud Stoddard, President & CEO, AmeriVault Corp.   To say we have seen a significant downturn in the economy in the past twelve months would be hyperbole at its best.  As business and technology executives and professionals, it is incumbent upon each of us to go through the necessary belt-tightening and reassessment of the budget whenever the economic conditions and the stock market make a turn in a southerly direction.   There are the obvious areas we turn to first with the scalpel in hand such as head count, marketing, accounting, human resources, legal, maybe even customer support and information technology (IT).  IT often seems like a logical
    lse if (Key.isDown(Key.LEFT)) { //this will move the player 15 units to the left this._x = this._x - 15; } }

    I’ll give some explanation below as to what this code means. Feel free to skip ahead of this explanation if you don’t want to get heavily involved in ActionScript.

    A bit about ActionScript:

    onClipEvent(enterFrame){} This is basically a container that’s called a function. This container holds code to be run within it. The function isn’t executed or run until something else tells it to. “onClipEvent” is the name of the function. Some names such as “onClipEvent” are reserved by Flash in order for certain things to run properly.

    The text in between the two brackets “(“ and “)”are any parameters that are passed to the function. Parameters are passed from the source that executed it. There can be more than one

    Finding Great Deals- Motivated Sellers
    Becoming a real estate investor and a home flipping buyer is a great way to invest in the real estate market. There are great deals in every market even hot real estate markets. Although sometimes it seems impossible to find them, with hard work and persistence they do exist.To put that great deal together you have to find that motivated seller. Finding motivated sellers isn’t easy because most sellers in the real estate market are not motivated enough to sell at a bargain. Finding the right seller requires a lot of things, knowing your market, advertising for distressed properties, and most importantly providing a solution for people in these situations.There are a lot of reasons why people become motivated to sell their homes. It is conceivable to believe that time and money will solve any real estate problem no matter what the situation is. That being said life happens, which in some cases causes people to become very motivated to sell their homes. Issues to look for when finding motivated sellers are:Divorce: As unfortunate as divorce is, it causes situations where the people involved want to discard everything that represents their married life, including property.Home Flipping Repairs: Sometimes inexperienced or first time investors get into a project that is over their head. They find a great deal, that needs more work than they can handle and it becomes a nightmare.Death of a Loved one: It is terrible to lose a loved one and the emotional impact and stress of dealing with an estate for the family can be overwhelming. In these cases family members are motivated to sell properties to help ease the stress and emotions of the situation.Transferring to a new job in a new city: Usually situations such as these are surrounded by certain time constraints. When these timelines starts to run
    This step-by-step guide will show you how to make an Flash game quickly and easily

    This article is for people who are just beginning to use Flash tools to create interactive stuff. This article will take you from a blank flash document to an action game in minutes, with any tricky things explained in ordinary, everyday language that you can skip over if you want.

    So without further ado, let us fire up our favourite Flash tool. There are many tools available, so I will use Macromedia Flash as it is the most universally used tool.

    I recommend Sothink SWF Quicker to budding flash designers for creating flash applications and movies. This program is like an easy to use version of Macromedia Flash, and I have used this versatile tool to easily make a variety of applications.

    Setting the scene

    Create a new flash document (menu File/New) and save it as game.fla. This is the design file that will contain the design and content for the game.

    If you get stuck anywhere on this tutorial there is a finished game.fla at the bottom of this page that can be downloaded to see what things should look like.

    Change the document properties (menu Modify/Document) so that the dimensions are 640 by 480 and so that the frame rate is 30 frames a second. The background colour is assumed to be white.

    We will start by creating the 5 initial objects needed to make the game work.

    Draw the player’s ship, the alien, the player’s projectile, the alien’s laser and an explosion on the same frame and layer.

    Turn each drawing into a Movie Clip with its own instance name. I will explain below in more detail how this is done. More advanced people can skip to the naming of the instances.

    How to turn a drawing into a Movie Clip:

    1. Select the drawing by dragging a box around it.

    2. Convert to a Movie Clip by going to the menu and then Modify or Insert depending on the Flash version. Choose “Convert to Symbol”. Alternatively you could use the shortcut by pressing F8.

    3. Set the behaviour as Movie Clip and choose an appropriate name. This name is not the instance name. Click here for an illustration.

    4. Select the new Movie Clip and in the properties panel at the bottom set the instance name to whatever is needed.

    The instance names are below:

    The Movie Clip for the player’s ship is called PlayerShip The Movie Clip for the alien is called Alien The Movie Clip for the player’s projectile is called PlayerShotT The Movie Clip for the alien’s laser is called AlienShotT The Movie Clip for the explosion is called ExplosionT

    Notice how there is a T at the end of certain instance names. This is a convenience to indicate that objects with a T at the end are to be used as templates for copies of themselves. This will be explained later.

    Let’s make things happen

    We’ll create some basic behaviours for our Movie Clip objects next.

    At the moment the player’s ship isn’t too responsive. We’re going to change that.

    Left click on the player’s ship to select it. Go to the Actions panel at the bottom and enter in the following code in the white part on the right:

    onClipEvent(enterFrame) { if(Key.isDown(Key.RIGHT)) { //this will move the player 15 units to the right this._x = this._x + 15; } else if (Key.isDown(Key.LEFT)) { //this will move the player 15 units to the left this._x = this._x - 15; } }

    I’ll give some explanation below as to what this code means. Feel free to skip ahead of this explanation if you don’t want to get heavily involved in ActionScript.

    A bit about ActionScript:

    onClipEvent(enterFrame){} This is basically a container that’s called a function. This container holds code to be run within it. The function isn’t executed or run until something else tells it to. “onClipEvent” is the name of the function. Some names such as “onClipEvent” are reserved by Flash in order for certain things to run properly.

    The text in between the two brackets “(“ and “)”are any parameters that are passed to the function. Parameters are passed from the source that executed it. There can be more than one

    Cheap Miami Car Insurance
    There are many flashy and expensive cars in Miami, Florida, and if your car is one of them, you might have some difficulty finding cheap Miami car insurance; however, it is important to tell yourself that difficult is not the equivalent of impossible.Although Miami is considered a high-crime area by many, your car does not have to fall victim to crime – namely, theft. Many expensive cars are victims of theft, and car insurance companies are aware of this. If purchasing a new, less expensive, and more modest vehicle is not on your list of options, try the following tips to help yourself get cheap Miami car insurance.Add safety features. If you did not purchase a car with safety features, such as an anti-theft alarm system, add the safety features yourself. Remember, safety features can go beyond just protecting your car against theft; you can also add anti-lock brakes, air bags, and child proof door locks to help protect yourself, your passengers, and other drivers and pedestrians, too. If you are not sure how to proceed, contact your car dealer or auto mechanic.Park in a locked garage or well-lit, security-protected parking area. Your car is more likely to be stolen at night or during times when you are not close by. Parking your car on the street while it is not in use puts it at risk for theft. If you do not have access to a garage, consider purchasing parking space.Contact your local Florida Department of Motor Vehicles office and/or law enforcement agency. Participate in any programs your area may have in effect to protect your car against theft. Many towns, cities, and states across America host programs designed to help drivers protect their cars from being stolen. Your local DMV office or law enforcement agency should have information about such programs, as well as additional tips for
    applications.

    Setting the scene

    Create a new flash document (menu File/New) and save it as game.fla. This is the design file that will contain the design and content for the game.

    If you get stuck anywhere on this tutorial there is a finished game.fla at the bottom of this page that can be downloaded to see what things should look like.

    Change the document properties (menu Modify/Document) so that the dimensions are 640 by 480 and so that the frame rate is 30 frames a second. The background colour is assumed to be white.

    We will start by creating the 5 initial objects needed to make the game work.

    Draw the player’s ship, the alien, the player’s projectile, the alien’s laser and an explosion on the same frame and layer.

    Turn each drawing into a Movie Clip with its own instance name. I will explain below in more detail how this is done. More advanced people can skip to the naming of the instances.

    How to turn a drawing into a Movie Clip:

    1. Select the drawing by dragging a box around it.

    2. Convert to a Movie Clip by going to the menu and then Modify or Insert depending on the Flash version. Choose “Convert to Symbol”. Alternatively you could use the shortcut by pressing F8.

    3. Set the behaviour as Movie Clip and choose an appropriate name. This name is not the instance name. Click here for an illustration.

    4. Select the new Movie Clip and in the properties panel at the bottom set the instance name to whatever is needed.

    The instance names are below:

    The Movie Clip for the player’s ship is called PlayerShip The Movie Clip for the alien is called Alien The Movie Clip for the player’s projectile is called PlayerShotT The Movie Clip for the alien’s laser is called AlienShotT The Movie Clip for the explosion is called ExplosionT

    Notice how there is a T at the end of certain instance names. This is a convenience to indicate that objects with a T at the end are to be used as templates for copies of themselves. This will be explained later.

    Let’s make things happen

    We’ll create some basic behaviours for our Movie Clip objects next.

    At the moment the player’s ship isn’t too responsive. We’re going to change that.

    Left click on the player’s ship to select it. Go to the Actions panel at the bottom and enter in the following code in the white part on the right:

    onClipEvent(enterFrame) { if(Key.isDown(Key.RIGHT)) { //this will move the player 15 units to the right this._x = this._x + 15; } else if (Key.isDown(Key.LEFT)) { //this will move the player 15 units to the left this._x = this._x - 15; } }

    I’ll give some explanation below as to what this code means. Feel free to skip ahead of this explanation if you don’t want to get heavily involved in ActionScript.

    A bit about ActionScript:

    onClipEvent(enterFrame){} This is basically a container that’s called a function. This container holds code to be run within it. The function isn’t executed or run until something else tells it to. “onClipEvent” is the name of the function. Some names such as “onClipEvent” are reserved by Flash in order for certain things to run properly.

    The text in between the two brackets “(“ and “)”are any parameters that are passed to the function. Parameters are passed from the source that executed it. There can be more than one

    Getting the Appointment
    What are you doing now to try and set up an appointment with your prospect? Calling? Is that all? Guess what? Every other salesperson is doing the same thing. They’re trying to get the appointment that could be YOURS!So, what are you going to do about it?Stand out!If you want the prospect to believe that you and your company are different, then you must prove it to them from the beginning! Your initial contact with them should show that you are creative, that you are persistent, and that your business is the better choice for them.Calling your prospects is only one of the many resources you have for establishing contact with them and setting up the appointment.Not only are you limiting yourself to one option, you’re also using the method that may leave the worst impression on your prospect. When you call, you are assuming that you are important enough for your prospect to stop whatever they are doing at that moment and talk to you so that you can try to sell them something.How inconvenient and annoying is that? VERY.So let’s use our imagination, shall we? Let’s think of some creative ways to get in front of your prospects and grab their attention. There are many obvious modes right in front of you, like snail mail, e-mail and faxes.This doesn’t mean you should stop calling your prospects. It means that you should stop relying on this method to gain that appointment. Using a variety of mediums (like those mentioned above), and learning to match them with the right message, will get you through to your prospect and capture their attention.Got guts?Have the courage to try something fun and new with your prospects. Too scared? Think about it this way: if your boring method isn’t working with them now, don’t yo
    below in more detail how this is done. More advanced people can skip to the naming of the instances.

    How to turn a drawing into a Movie Clip:

    1. Select the drawing by dragging a box around it.

    2. Convert to a Movie Clip by going to the menu and then Modify or Insert depending on the Flash version. Choose “Convert to Symbol”. Alternatively you could use the shortcut by pressing F8.

    3. Set the behaviour as Movie Clip and choose an appropriate name. This name is not the instance name. Click here for an illustration.

    4. Select the new Movie Clip and in the properties panel at the bottom set the instance name to whatever is needed.

    The instance names are below:

    The Movie Clip for the player’s ship is called PlayerShip The Movie Clip for the alien is called Alien The Movie Clip for the player’s projectile is called PlayerShotT The Movie Clip for the alien’s laser is called AlienShotT The Movie Clip for the explosion is called ExplosionT

    Notice how there is a T at the end of certain instance names. This is a convenience to indicate that objects with a T at the end are to be used as templates for copies of themselves. This will be explained later.

    Let’s make things happen

    We’ll create some basic behaviours for our Movie Clip objects next.

    At the moment the player’s ship isn’t too responsive. We’re going to change that.

    Left click on the player’s ship to select it. Go to the Actions panel at the bottom and enter in the following code in the white part on the right:

    onClipEvent(enterFrame) { if(Key.isDown(Key.RIGHT)) { //this will move the player 15 units to the right this._x = this._x + 15; } else if (Key.isDown(Key.LEFT)) { //this will move the player 15 units to the left this._x = this._x - 15; } }

    I’ll give some explanation below as to what this code means. Feel free to skip ahead of this explanation if you don’t want to get heavily involved in ActionScript.

    A bit about ActionScript:

    onClipEvent(enterFrame){} This is basically a container that’s called a function. This container holds code to be run within it. The function isn’t executed or run until something else tells it to. “onClipEvent” is the name of the function. Some names such as “onClipEvent” are reserved by Flash in order for certain things to run properly.

    The text in between the two brackets “(“ and “)”are any parameters that are passed to the function. Parameters are passed from the source that executed it. There can be more than one

    Credit Bad and Unemployed
    Once you became unemployed, did your bills begin to suffer? Maybe you were able to continue paying your bills for a month of two. But the third or fourth month, you began getting behind a little bit more. You were late in paying one or two of you bills. You are sure the next month this will not happen. You will be prepared when the bills come.The next month comes along and instead of being behind only on one bill, now you are behind on two bills. Your creditors began calling because this is not your normal pattern. What can you do? Do you ignore the calls out of embarrassment or do you take the call and feel worse after you get off the phone.There are steps you can take to work with your creditor once you are unemployed. If prior to your unemployment, you were faithfully paying your bills on time the next few steps could be crucial. First, I suggest that you do not avoid the phone call. Some creditors are more determined than others to get someone on the phone. Second, one you are on the phone with the creditor be honest about the situation you are dealing with. Assure them that it is not your intent not to pay your bills. You have found yourself in a situation that you are not used to dealing with. Third, ask them if once you have returned to being employed and paying your bills, if they would be willing to add a statement to your file reflecting your determination and willingness to get your bills paid. You might be surprised that some of your creditors will help you.This will in turn be looked at when you are seeking new credit and trying to re-establish your credit. If you have not ever looked at your credit report, order it from www.annualcreditreport.com for free once a year. Or you can order it from each of the credit reporting agencies individually. The credit reporting agencies are Experian, TransUni
    tile is called PlayerShotT The Movie Clip for the alien’s laser is called AlienShotT The Movie Clip for the explosion is called ExplosionT

    Notice how there is a T at the end of certain instance names. This is a convenience to indicate that objects with a T at the end are to be used as templates for copies of themselves. This will be explained later.

    Let’s make things happen

    We’ll create some basic behaviours for our Movie Clip objects next.

    At the moment the player’s ship isn’t too responsive. We’re going to change that.

    Left click on the player’s ship to select it. Go to the Actions panel at the bottom and enter in the following code in the white part on the right:

    onClipEvent(enterFrame) { if(Key.isDown(Key.RIGHT)) { //this will move the player 15 units to the right this._x = this._x + 15; } else if (Key.isDown(Key.LEFT)) { //this will move the player 15 units to the left this._x = this._x - 15; } }

    I’ll give some explanation below as to what this code means. Feel free to skip ahead of this explanation if you don’t want to get heavily involved in ActionScript.

    A bit about ActionScript:

    onClipEvent(enterFrame){} This is basically a container that’s called a function. This container holds code to be run within it. The function isn’t executed or run until something else tells it to. “onClipEvent” is the name of the function. Some names such as “onClipEvent” are reserved by Flash in order for certain things to run properly.

    The text in between the two brackets “(“ and “)”are any parameters that are passed to the function. Parameters are passed from the source that executed it. There can be more than one

    Can You Replace Your Income Working At Home?
    I get this question a lot from my listeners and readers. The easy answer has to be Yes, you can, but, I usually like to find out a little more about the person before I start handing out easy answers.What is your current income?I have a good friend in Gaylord who was only making about $150 a week working part time. She easily replaced and increased her income with a home based business in about six months.Then I have a niece who earns $37,000 a year working for the state. Could she replace her income? Yes, with some major effort, creativity and perseverance she could. But it would likely take much longer than six months.What would you like to do to work from home?I’ve gained a lot of perspective and understanding in my years in the work at home mom community. Some business ideas have great earning potential, some have limited income potential and some ideas in my humble opinion have pretty crappy potential.So if you ask me if you can do this or that and replace your income, my answer will depend a lot on what the ‘this or that’ may be.What are you willing to give up to work at home?If you enjoy a high income and you have children you’re trying to get home to, working to build up a business that will replace that income while keeping up with the full time job isn’t really a good idea. It usually doesn’t leave much time for the kids.So making a transition to working at home full time will usually involve giving up some lifestyle.My niece who makes thirty seven grand a year also enjoys terrific health benefits. She is also not alone in the fact that she has built up her lifestyle to meet her present income. This means that her house and car payments rely on her present income. For her to decide that she would stay home full time – it would mean giving some
    lse if (Key.isDown(Key.LEFT)) { //this will move the player 15 units to the left this._x = this._x - 15; } }

    I’ll give some explanation below as to what this code means. Feel free to skip ahead of this explanation if you don’t want to get heavily involved in ActionScript.

    A bit about ActionScript:

    onClipEvent(enterFrame){} This is basically a container that’s called a function. This container holds code to be run within it. The function isn’t executed or run until something else tells it to. “onClipEvent” is the name of the function. Some names such as “onClipEvent” are reserved by Flash in order for certain things to run properly.

    The text in between the two brackets “(“ and “)”are any parameters that are passed to the function. Parameters are passed from the source that executed it. There can be more than one parameter eg “(var1,test2)”. These parameters can usually be used within the function. Parameters will be described in more detail later.

    The stuff in between curly braces “{” and ”}” is the actual code within the function that is executed.

    Things like “this._x= this._x + 15;” are called statements. Statements are bits of code that tells something to do something else. There is usually at most one statement every line. Every statement must end with “;” so that Flash knows when the statement ends.

    Comments are ignored by Flash, but help the coder know what their code is doing. Comments begin with a “//” and continue for the entire line.

    if(Key.isDown(Key.RIGHT)) {} This is called an if statement. This is basically a test to see if the stuff within the brackets is true. If the stuff is true then the code within the curly braces is run.

    else if (Key.isDown(Key.LEFT)) {} This can only go after the “if” statement or another “else if” statement. Basically, if the stuff in the previous test is false, then the stuff in this “else if” statement is tested. If the test in the brackets is true than the code within the braces is executed.

    This little piece of code will let you move the ship around from left to right. Preview your flash animation (CTR-ENTER) and try moving the ship with the left and right arrow buttons.

    The ship can move outside the boundaries so we need to add in a bit more code to restrict its movement.

    Change the line:

    if(Key.isDown(Key.RIGHT )) {

    to:

    if(Key.isDown(Key.RIGHT) and this._x < 640) {

    Also, change the line:

    } else if (Key.isDown(Key.LEFT)) {

    to:

    } else if (Key.isDown(Key.LEFT) and this._x > 0) {

    Preview your animation again. This time the player ship should stay within the boundaries.

    Now would be a great time to place the player’s ship around the bottom of the stage, as it will be firing upwards.

    Time to breathe some life into the alien. Select the alien and put this code into the ActionScript part:

    //this is triggered when the clip loads onClipEvent (load) { xmove = random(15) - random(15); //comments can also go after statements ymove = random(15) - random(15); //this sets the ymovement randomly this._x = random(640); //this sets the x and y position randomly this._y = random(480); }

    //this is triggered everytime a new frame is entered, in this case 30 times a sec onClipEvent (enterFrame) { //lets move the alien around this._x = this._x + xmove; this._y = this._y + ymove;

    //bounce the alien if it is out of bounds if(this._x > 640){xmove = Math.abs(xmove) * -1} if(this._x < 0){xmove = Math.abs(xmove)} if(this._y > 480){ymove = Math.abs(ymove) * -1} if(this._y < 0){ymove = Math.abs(ymove)} }

    Try running the game now. The alien should select a random direction and speed and bounce around the stage.

    You should move the explosion, alien laser and player projectile off of the stage. This is because these are the templates that will be copied whenever necessary and so they will remain throughout the entire game.

    Time to give our ship some offensive weaponry.

    Select the frame that you are working in. This should be the first one on the left.

    Go to the Actions panel at the bottom and insert the following code:

    //The stuff below this will only be ex

    HTTP = HTML link (for blogs, profiles,phorums):
    <a href="http://www.memberyou.net/article/172527/memberyou-Quick-Article-On-Making-A-Flash-Game.html">Quick Article On Making A Flash Game</a>

    BB link (for phorums):
    [url=http://www.memberyou.net/article/172527/memberyou-Quick-Article-On-Making-A-Flash-Game.html]Quick Article On Making A Flash Game[/url]

    Related Articles:

    Which Networking Group For You?

    Improve Efficiency Using Free Knowledge Tools

    Wisconsin Home Equity Loans – Saving Money on Your Home Equity Loan

    Bookmark it: del.icio.us digg.com reddit.com netvouz.com google.com yahoo.com technorati.com furl.net bloglines.com socialdust.com ma.gnolia.com newsvine.com slashdot.org simpy.com shadows.com blinklist.com