eArticleSubmit.com | Getting the Maximum Search engine Exposure to your Content
Translate Page To German Tranlate Page To Spanish Translate Page To French Translate Page To Italian Translate Page To Japanese Translate Page To Korean Translate Page To Portuguese Translate Page To Chinese

  Number of Times Read : 18

category

select Advice (1181)
select Aging (299)
select Arts and Entertainment (6311)
select Automotive (1921)
select Break-up (78)
select Business (27163)
select Business Management (1258)
select Cancer Survival (81)
select Career (3041)
select Cars and Trucks (2509)
select Celebrities (54)
select Cheating (49)
select Communications (555)
select Computers (2942)
select Computers and Technology (3253)
select Culture (288)
select Culture and Society (10664)
select Disease & Illness (1398)
select Environment (819)
select Etiquette (42)
select Family Concerns (1180)
select Fashion (2654)
select Finance (15390)
select Finances (6040)
select Food & Beverage (703)
select Food and Drinks (848)
select Health & Fitness (11861)
select Hobbies (3511)
select Home & Family (6811)
select Home Management (4429)
select Inspirational (1)
select Internet (4743)
select Internet Business (8974)
select Jobs (447)
select Medical Business (552)
select Medicines and Remedies (3014)
select Opinions (225)
select Pets & Animals (208)
select Politics (441)
select Product Reviews (62)
select Recreation (2119)
select Recreation & Sports (11816)
select Reference & Education (4952)
select Relationships (1555)
select Religion (1149)
select Self Help (2225)
select Self Improvement (1418)
select Short Stories (30)
select Society (1704)
select Travel & Leisure (3637)
select Vehicles (475)
select Wellness, Fitness and Di (5485)
select Womens Interest (1691)
select Womens Issues (237)
select World Affairs (175)
select Writing & Speaking (1621)
 
Stats
Total Articles: 176396
Total Authors: 9960
Total Downloads: 1415747


Welcome to Our Newest Member
Donna Page
 


All About Actionscript Game Programming
[Valid RSS feed]  Category Rss Feed - http://www.earticlesubmit.com/rss.php?rss=249
By : Gerry Ronson    14 or more times read
Submitted 2007-11-15 13:59:32
I have written this article as a basic primer to flash game programming. In this article I will cover how basic programming can be applied to creating flash games. This article will not cover graphic design or drawing. If you are already proficient in another programming language this article will certainly help in the transition to flash game programming.

This article is aimed at people will very basic programming knowledge. An interest in flash games is certainly a bonus when learning to program them. Programming languages of any king will help you to understand this article and its terminology relating to flash game programming. I will be using very general programming terminology.

The very first thing I am going to cover is variables. A variable is a place where either a number, string(text) or a Boolean(true or false) can be stored. Variables can be changed at run time this means during game play. For example number of ammo in a weapon can be stored as a variable. As the user shoots the weapon the variable is degreased. A very symbol way in programming syntax would be: On press decrease the ammo variable by one.

The next thing I’m going to discuss is hit tests. A hit test is performed to detect when two symbols make contact. When these symbols make contact a true value is returned while the objects are not in contact a false value is returned. As you can imagine this very simple function has many uses where game programming is covered. An example of this could be when bullet hits its target play an animation of the enemy’s death and remove them from the screen. So the basic in programming terms to this would be: if bullet and enemy’s hit test is equal to ‘true’ then activate function enemy death that takes the value of the enemy’s unique identifier. Inside the function would be syntax to display the animation and remove the symbol from the screen.

Displaying a life car can be achieved by first creating a small rectangle graphic. Next make the rectangle a movie clip and sets its identifier to a name of your choice. After this create a variable and set the variables values to ‘100’ and strict data style it to a number. Once you have done this, open action script and set the rectangles .length property to the variable you just created and set to ‘100’. This way when the variable is increased or decreased the bar will change lengths. So when the variable is high the bar is longer and when the variable is low the bar will become shorter. Remember variables can be changed at run time there for so can the bar. Using a simple hit test to increase and decrease the variable which in turn changes the bars length. Producing a working bar that shows how much value the variable contains. This can easily be added into a game where the length of the bar resents the amount of life a player has remaining.

I hope this article showed you just how simple the elements that make up a flash game can be. Games may look daunting but once you break down there elements they become a lot simpler than they may first appear. If you have no yet tried making a game using flash then I strongly suggest you give it ago. The best way to learn flash is by experimenting and creating working scripts.
Author Resource:- Gerry Ronson - Puppies for Sale and Dog Accessories.
Article From eArticles
Can't find what you're looking for? Try Google Search!
Custom Search
Social Bookmark this Article
Related Articles :

HTML Ready Article. Click on the "Copy" button to copy into your clipboard.




Firefox users please select/copy/paste as usual
Sign up
learn more
 
 
Directory Menu
Home
Login
Submit Articles
Submission Guidelines
Top Articles
Link Directory
About Us
Contact Us
Privacy Policy
RSS Feeds
Navigation Menu
select
Mortgage Accelerator Scam!
select
Electricity Bill Killer!
select
Forex Secret Code
select
The Fortune Key
select
Law of Attraction Workbook!
select
Six Figure Yearly
select
Easy Automated Income
select
Top Secret Ad Secret
select
Build Muscle&Burn Fat
select
Run Car on Water!
select
Xbox360 3Redlights fix!

Actions
Print This Article
Add To Favorites




 
 

 

Powered By: Article Friendly | Design By Dynamic web solutions

eXTReMe Tracker