
In this tutorial, we will mostly just look at creating a custom class in Flash. Learning Object Oriented Programming is an important part of the lessons to come, so handling a relatively simple countdown clock is a good place to start.
In this lesson we will program the main engine of the game, setup a Player, Enemy, test collisions and much more.
The example files for this part of the course are included in the Supplemental Materials tab.
In this lesson we will spawn more enemies, handle what happens when an enemy falls off the edge of the universe, code actions for the player jumping and attacking, and a whole lot more.
The example files for this part of the course are included in the Supplemental Materials tab.
In this lesson we'll add a Coin class and include code for using the Accelerometer on a mobile device to control the character. The example files (in the Supplemental Materials tab) might not run properly if you don't test on a device.
The Supplemental files included with Lecture 6 strip out the mobile code.
Justin Dike, lead developer and owner of CartoonSmart.com teaches every step in programming a side scrolling Flash game with Actionscript 3. Use the arrow keys to move a character around and attack while traversing a vector based environment (you can easily draw the entire level to play on using vector shapes or movie clips.
Also included is alternate code to use with a mobile device's accelerometer (tested on the Android & iPhone OS). Topics include:
As usual with Justin's tutorials, source files are included.