Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 12-27-2006, 03:03 AM   #1
andrewcharon
nemen
 
Join Date: Nov 2006
Posts: 74
Default Collistion Response for Car Game

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
andrewcharon is offline   Reply With Quote
Old 12-27-2006, 04:33 AM   #2
inhan
it's all about patience
 
inhan's Avatar
 
Join Date: Jun 2005
Location: istanbul
Posts: 5,859
Default

From gskinner...
Attached Files
File Type: zip CollisionDetection.zip (23.8 KB, 63 views)
__________________
Ali Inhan
Turkish graphic and web designer
an Apple fan
www.aliinhan.com
inhan is offline   Reply With Quote
Old 12-27-2006, 04:45 AM   #3
terbooter
Senior Member
 
Join Date: Dec 2006
Posts: 127
Default

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
Attached Files
File Type: zip toZmitrek.zip (10.6 KB, 52 views)
terbooter is offline   Reply With Quote
Old 12-27-2006, 01:39 PM   #4
andrewcharon
nemen
 
Join Date: Nov 2006
Posts: 74
Default Collision response

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
andrewcharon is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 09:46 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.