Build a flash game




















However, certain site features may suddenly stop working and leave you with a severely degraded experience. What should I do? We strongly urge all our users to upgrade to modern browsers for a better experience and improved security. To enhance your user experience, support technical features, and personalize content and ads, this site uses cookies. An open platform for all web games!

Get your games in front of thousands of users while monetizing through ads and virtual goods. With our publishing program, we can help get your games to millions of users on multiple platforms! Keep exploring Kongregate with more badges and games! Spend your hard earned kreds on some of these games!

Hide the progress bar forever? Yes No. Your game will start after this message close. Report Cinematic Bug Install or enable Adobe Flash Player.

Alternatively, we also recommend the SuperNova! Flash uses ActionScript, an easy-to-learn language that gives you control over the objects on your screen. This wikiHow article will teach you how to learn how to create a basic Flash game. Plan your game. Familiarize yourself with ActionScript3. Install and run Adobe Flash Professional. Create objects and assign properties. Use Test Movie to test the game as you write it.

Look at other people's games for reference. Did this summary help you? Yes No. Log in Social login does not work in incognito and private browsers. Please log in with your username or email to continue.

No account yet? Create an account. Edit this Article. We use cookies to make wikiHow great. By using our site, you agree to our cookie policy. Cookie Settings. Learn why people trust wikiHow. Download Article Explore this Article parts. Related Articles. Article Summary. Author Info Last Updated: December 2, Part 1. Design your game. Before you start coding, it will help to have a rough idea of what you want your game to do. Flash is best suited for simple games, so focus on creating a game that has only a few mechanics for the player to worry about.

Try to have a basic genre and some mechanics in mind before you start prototyping. See this guide for more details on the planning phases of video game development. Common Flash games include: Endless runners: These games automatically move the character, and the player is responsible for jumping over obstacles or otherwise interacting with the game. The player typically only has one or two options when it comes to controls. Brawlers: These are typically side scrolling and task the player with defeating enemies to progress.

The player character often has several moves that they can perform to defeat enemies. Puzzles: These games ask the player to solve puzzles to beat each level. These can range from Match-3 style such as Bejeweled to more complex puzzle solving typically found in Adventure games.

RPGs: These games focus on character development and progression, and have the player moving through multiple environments with a variety of enemy types. RPGs can be significantly more difficult to code than a simple action game. Learn what Flash excels at. Flash is best-suited for 2D games.

It is possible to create 3D games in Flash, but it is very advanced and requires significant knowledge of the language. Almost every successful Flash game has been 2D.

Flash games are also best suited for quick sessions. This is because most Flash game players play when they have a little free time, such as on breaks, meaning gaming sessions are typically 15 minutes or less.

Familiarize yourself with the ActionScript3 AS3 language. Flash games are programmed in AS3, and you will need to have some basic understanding of how it works in order to successfully create a game. You can create a simple game with a rudimentary understanding of how to code in AS3.

There are several books about ActionScript available on Amazon and other stores, along with a large number of tutorials and examples online. Download Flash Professional. This program costs money, but is the best way to create Flash programs quickly. There are other options available, including open-source options, but they often lack compatibility or take longer to accomplish the same tasks.

Flash Professional is the only program you will need to start creating games. Part 2. Understand the basic building blocks of AS3 code. When you are creating a basic game, there are several different code structures that you will be using. There are three main parts of any AS3 code: Variables - This is how your data is stored.

Data can be numbers, words strings , objects, and more. Variables are defined by the code var and must be one word.

Create an object. ActionScript is used to affect objects in Flash. In order to make a game, you will need to create objects that the player will interact with.

Depending on the guides you are reading, objects may be referred to as sprites, actors, or movie clips. For this simple game, you will be creating a rectangle. Open Flash Professional if you haven't already. Create a new ActionScript 3 project.

This panel may be in different locations depending on the configuration of Flash Professional. Draw a rectangle in your Scene window. Select the rectangle using the Selection tool. Assign properties to the object.

With your newly-created rectangle selected, open the Modify menu and select "Convert to Symbol". You can also press F8 as a shortcut. In the "Convert to Symbol" window, give the object an easily recognizable name, such as "enemy". Find the Properties window. At the top of the window, there will be a blank text field labeled "Instance name" when you hover over it. Name it the same as you did when you converted it to a symbol "enemy". This creates a unique name that can be interacted with through AS3 code.

Each "instance" is a separate object that can be affected by code. You can copy the already created instance multiple times by clicking the Library tab and dragging the instance onto the scene. Each time you add one, the name will be changed to designate that it's a separate object "enemy", "enemy1", "enemy2", etc. When you refer to the objects in the code, you simply need to use the instance name, in this case "enemy". Learn how you can change the properties of an instance.



0コメント

  • 1000 / 1000