Join Lee Brimelow for an in-depth discussion in this video Creating the Alien movie clip, part of Building Flash Games with Starling.
- View Offline
So in the last two movies we created our Bullet class and our BulletManager class…which helps to keep track of all those bullets.…Well we are going to do a very similar thing for our alien.…We are first going to create an Alien class and then an AlienManager class.…So I'm going to go to my Objects package, right-click, and say New >…ActionScript Class and I'm going to call it Alien.…Now for a Superclass, we don't want Sprite, we want MovieClip now, because again…this actually contains an animation within itself and make sure you choose…Starling.display.MovieClip.…
Now you'll see that it expects two arguments to the constructor.…First is a Vector of Texture objects, which we are going to get out of our…Texture Atlas, and then a frames per second so this can actually have an…independent frame rate different from the frame rate of our main game.…So I'm going to remove these arguments from the constructor and we are going to…send them into the super constructor.…So first we need to get those textures out of our Texture Atlas.…
Starting with installation and configuration of Starling and creation of a Flash Builder project, the course shows how to prepare and import graphical assets, create MovieClip classes from sprite sheets, manage various gaming objects, detect collisions, and add both particle and sound effects. The finished game can be deployed to any browser or mobile device that integrates Flash Player 11, which was released in September 2011.
- Downloading and installing Starling and Flash Builder
- Creating the project
- Creating the main game class, static assets class, and other classes
- Building the state machine
- Creating a static assets class
- Adding images
- Creating sprite sheets with Texture Packer
- Creating and importing bitmap fonts
- Detecting collisions
- Adding particle effects
- Adding sound effects