2. ActionScript Game Elements

image

Creating Visual Objects

Accepting Player Input

Creating Animation

Programming User Interaction

Accessing External Data

Miscellaneous Game Elements

Before we build complete games, we start with some smaller pieces. The short programs in this chapter give us a look at some basic ActionScript 3.0 concepts and also provide us with some building blocks to use later and in your own games.

Source Files

http://flashgameu.com

A3GPU202_GameElements.zip

Creating Visual Objects

Our first few elements involve the creation and manipulation of objects on the screen. We pull some movie clips from the library, turn movie ...

Get ActionScript 3.0 Game Programming University, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.