Join Paul Trani for an in-depth discussion in this video Detecting collisions, part of Creating a Simple Game for Android Devices with Flash Professional CS5.
Essential to almost any game is going to be collision detection, so determining…when items hit each other or if they go off the screen--some sort of detection…to see where items are at and then giving a result there.…In this case, I need to determine when these UFOs hit the bottom, when they…hit my player, and then also when my lasers hit the UFOs, otherwise known as tempEnemy.…So those are the different sort of collision detections that I need to do.…
All right, and what I am going to do is I am going to go ahead and just have…some trace statements anytime some thing gets hit. You can see I already have…some laser hits the top, so that's a sort of collision detection that's…currently going on.…So let's just go into my Actions panel, and as I scroll down, let's jump into my…player, the movePlayer.…We can see that. And in moveLaser, you can see this trace("laser hits top").…
Well, I really don't need this.…In fact, that's probably going to get in the way, so I'm just going to delete it.…I already know it works; everything is fine.…
- 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.