AS3-101: Game Development part 1

– taterboy | April 21st, 2011

Filed under: ActionScript 101, ActionScript 3, Flash, Flash AS2 to AS3, Games, Tutorials

This series has been taught to a few students over the last couple years with the intention of making it into a video tutorial series, but due to the lack of time and fear that it will never happen otherwise, we are going to have to do this old-school.

The series was originally taught in Flex / Flash Builder, but with so many Flash AS2 developers still learning AS3, this is a great program for new and old developers who want to develop Flash games using actionScript 3. This tutorial series will be focused on the Flash IDE, if you want a Flash Builder version of this series, please request it in the comments below.

Getting Started:
The foundation of any game is providing a way for users to control elements on the screen. At our game’s core is these 4 lines of code.

// 1B
function frameHandler(ev:Event):void{
	ball.x += 10;
// 1A
addEventListener(Event.ENTER_FRAME, frameHandler);

Read All About It »

Technorati Tags: , , , , , , , , , ,

| No Comments » | facebook: