Start learning with our library of video tutorials taught by experts. Get started
Viewers: in countries Watching now:
Join Lee Brimelow in this project-style course that teaches how to build a Flash-based game with Flash Builder 4.6, Flash Player 11, and the Starling framework. Starling, a pure ActionScript 3.0 library for advanced graphics, extends Flash Player 11's support for the modern GPU (graphic processing unit) to enable visual presentations and games in the browser or as a mobile app.
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.
So the first thing we're going to do in our play state, very similar to what we did in the menu state, is to add that scrolling background to it. So the same way I did in the menu state, I'm going to come into the init event handler and I'm going to create a variable called background, that's going to be equal new Background; and we're going to want to create that as an instance variable, and we want to add that background to our display list. And again, in the update method for our play state which will be called on every frame, we're going to go ahead and update that background.
So background.update, and we can save that and let's go ahead and test it. So again when we first come into the game, we're in our menu state and then when I click PLAY GAME we're now essentially in the play state for our game, but it has that similar scrolling background associated with it. So again, that's the first part of our play state.
There are currently no FAQs about Building Flash Games with Starling.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.