| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
nemen
Join Date: Nov 2006
Posts: 74
|
Hi
I'm building a 2D car game and it's close to done, however I'm trying to figure out the best way to do a collision detect and response for two cars when they overlap. I'd like them to somehow bounce off of each other (react appropriately) instead of the movieClips overlapping. I posted my progress. If anyone has any suggestions of the best way of doing this or an online resource/tutorial it would be greatly appreciated. My progress is here: http://www.andrewcharon.net/3m/auto.html Thanks in advance for your help. Andrew **Here is a link to a game where the collision response is similar to what I'm looking for: http://www.freeloader.com/content/fr...ob_dcategory=1 |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Dec 2006
Posts: 127
|
andrewcharon, nice game! Keep going the same way!
Why you are not satisfied with two MC boundary collision? Your cars have good rectangle shape. But if you want more accurancy, you may use point-shape collision The idea: You mark key points of your cars and chek if any of this point colliding with shape of other car In attacment idea of realization |
|
|
|
|
|
#4 |
|
nemen
Join Date: Nov 2006
Posts: 74
|
I am satisfied with the boundary collision, however I'm not satisfied with the car to car collision (or lack of).
My big challenge I have is once I set the detection, how do I take this to the next step to create an appropriate reaction from the collision when one car hits the other car. Thanks |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| AS3 Game Dev Kit | newblack | General Chat | 3 | 06-03-2007 02:30 AM |
| Rate My Game, plz fill the questioner | UzumakiJr | Site Check | 0 | 12-16-2006 09:48 PM |
| Card Game (turn-based) - Lobby Room and Game Room, maintain state | cururu | ActionScript 2.0 | 3 | 05-20-2006 03:06 AM |
| word search game with AS2 | black | General Chat | 5 | 08-12-2004 10:44 AM |
| [AS2] Tile game or not tile game? | krolben | Gaming and Game Development | 4 | 07-28-2004 01:41 PM |