Create a simple Flash game

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

step05

05. We’ve now got Madame Octopus happily moving around the screen in response to the arrow keys. The next stage is to add some objects for her to avoid. We’ll make use of the bubble movie clip that we used last month. Locate the bubble MovieClip in your library, right-click (Ctrl + click) on it and choose Duplicate. Name the duplicate ‘evilBubble’, and again tick Export for ActionScript, giving the MovieClip an identifier of ‘EB’ and a class of ‘EB’. If you didn’t complete last month’s tutorial, open the file EB.as from the cover CD.

step06

06. Double-click on the evilBubble symbol in the library, and remove all but the first frame of the timeline by highlighting the frames, right-clicking and selecting Remove Frames. Delete the motion guide layer, then reposition the bubble so that its centre aligns with the origin crosshairs on the stage. Select the bubble and use the Tint colour effect to give it a colour.

step07

07. The evil bubble doesn’t yet appear on stage; it’s in the library waiting to be used. We’re going to create lots of evil bubbles using ActionScript. Go to File > New, select ActionScript file, and save the resulting document as EB.as.

Join the newsletter!

Error: Please check your email address.
Rocket to Success - Your 10 Tips for Smarter ERP System Selection

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
Show Comments

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Ben Ramsden

Sharp PN-40TC1 Huddle Board

Brainstorming, innovation, problem solving, and negotiation have all become much more productive and valuable if people can easily collaborate in real time with minimal friction.

Sarah Ieroianni

Brother QL-820NWB Professional Label Printer

The print quality also does not disappoint, it’s clear, bold, doesn’t smudge and the text is perfectly sized.

Ratchada Dunn

Sharp PN-40TC1 Huddle Board

The Huddle Board’s built in program; Sharp Touch Viewing software allows us to easily manipulate and edit our documents (jpegs and PDFs) all at the same time on the dashboard.

George Khoury

Sharp PN-40TC1 Huddle Board

The biggest perks for me would be that it comes with easy to use and comprehensive programs that make the collaboration process a whole lot more intuitive and organic

David Coyle

Brother PocketJet PJ-773 A4 Portable Thermal Printer

I rate the printer as a 5 out of 5 stars as it has been able to fit seamlessly into my busy and mobile lifestyle.

Kurt Hegetschweiler

Brother PocketJet PJ-773 A4 Portable Thermal Printer

It’s perfect for mobile workers. Just take it out — it’s small enough to sit anywhere — turn it on, load a sheet of paper, and start printing.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?