Create a simple Flash game

Tap the power of Flash’s ActionScript capabilities to build a simple game with animated characters.

Tap the power of Flash’s ActionScript capabilities to build a simple game with animated characters. We have already shown you how to create a character in Illustrator and animate it in Flash.

Octopusswf

This month, we’re going to take our animation one stage further, and create a simple game using the character. Flash’s ActionScript language allows us to program MovieClips to have specific behaviours, events and properties.

By leveraging the flexibility of external classes, we’ll create a reusable set of code that can be applied to any number of MovieClips, allowing for swarms of independent gameplay objects that each report back to the main timeline and allow for straightforward game-status management.

This approach will also let you add extra elements to the game easily, and the technique can be applied to a variety of different game types: the principles are largely the same whether you’re creating a driving game or a shoot-‘em-up. If that all sounds a bit scary, don’t worry – it will start to make sense as we work through the steps.

step01

01. Open your FLA from the previous tutorial. First, we need to allow the player to control our character, Madame Octopus (MO). We need to control her using ActionScript, so open your library (Cmd/Ctrl + L) then locate your Madame Octopus MovieClip. Right-click (Ctrl + click) on the MovieClip, choose Properties and then under Advanced, tick the Export for ActionScript checkbox. Give it an Identifier of ‘MO’ and a class of ‘MO’.

Tags gamesflash

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Sam Hampton-Smith

Digital Arts Magazine

Comments

Comments are now closed.

Most Popular Reviews

Follow Us

Best Deals on GoodGearGuide

Shopping.com

Latest News Articles

Resources

GGG Evaluation Team

Kathy Cassidy

STYLISTIC Q702

First impression on unpacking the Q702 test unit was the solid feel and clean, minimalist styling.

Anthony Grifoni

STYLISTIC Q572

For work use, Microsoft Word and Excel programs pre-installed on the device are adequate for preparing short documents.

Steph Mundell

LIFEBOOK UH574

The Fujitsu LifeBook UH574 allowed for great mobility without being obnoxiously heavy or clunky. Its twelve hours of battery life did not disappoint.

Andrew Mitsi

STYLISTIC Q702

The screen was particularly good. It is bright and visible from most angles, however heat is an issue, particularly around the Windows button on the front, and on the back where the battery housing is located.

Simon Harriott

STYLISTIC Q702

My first impression after unboxing the Q702 is that it is a nice looking unit. Styling is somewhat minimalist but very effective. The tablet part, once detached, has a nice weight, and no buttons or switches are located in awkward or intrusive positions.

Latest Jobs

Shopping.com

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?