Join Paul Trani for an in-depth discussion in this video Moving the player, part of Flash Professional CS5: Creating a Simple Game for Android Devices.
The foundation of pretty much any game is going to be how the player moves, and…in this case, what I want to do is I want the player to move from left to right,…the X position, based on the mouse position.…So again, I'm going to go ahead and move this player spaceship to the left and…right based on the mouse position. But the first thing I need to do is I'm going…to dynamically add this player to the stage when it's time to play the game,…okay, and I'm going to use code snippets to do this.…
So with the Code Snippets panel opened, I'm going to go down to Add from…Library, because I want to add that player from the library, and I'll just…double-click that code snippet and it adds it into my Actions frame1 is where it…puts it. And let's go ahead and take a look at this code, because currently it…defines a variable, because I need to give this a variable name and make sure…Flash knows that it's a MovieClip.…Okay, so right up here, I'm just going to call this player.…
And where do all my variables go?…
- Designing for mobile platforms
- Creating and optimizing game graphics
- Adding random movement and interactivity
- Moving players based on the accelerometer
- Using gestures
- Detecting collisions
- Implementing audio
- Adding scoring and levels
- Implementing a high score screen
- Publishing an app on both Mac and Windows
- Uploading to the Android Market
Skill Level Intermediate
1. Introduction to Mobile
Understanding the user4m 2s
2. Mobile Game Setup
3. Basic Game Movement
4. Advanced Interactivity
6. Mobile-Specific Functionality
7. Optimizing for Mobile Devices
9. Uploading to the Android Market
Next steps1m 22s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.