It depends on how you are representing your dynamics.
Are you using Vectors and how are you arriving at your Position. ie
Acceleration=Force/Mass
Velocity+=Acceleration.
New_Position = Old_Position+Velocity
There are a number of methods for calculating friction or drag, the simplest is a penalty on Velocity ie drag is directly proportional to the velocity of the car. ie
Acceleration=Force/Mass
Velocity+=Acceleration.
New_Position = Old_Position+(Velocity*=drag).
it's great but how did you do it? i am making a game like that 2 but is there a way to stop the car after a whle? when i play it keeps going into the wall and out over and over
this isn't drifting so much as letting the car rotate without affecting its momentum- a car's momentum against the turned direction is what causes drifting, but not so exaggerated obviously.
you have to implement drag. shipstern demonstrated a very simple means to do this. if that doesn't make sense, you probably won't have much luck making a car game!
sometimes if you make a game it make car rotate but not go, u need to change the flash player under 7
I have published the movie in Flash 8, Flash player 8.
Use UP, DOWN arrow keys to move the car.
Use LEFT, RIGHT arrow keys to rotate the car.
For better performance please change the frame rate (fps)
from the existing 12 to 24.
I am still at it.
I have improved the FLA, and added speed coolbar.
Please see the attached FLA(F8-ZIPPED).
Present frame rate set at 12.
You can play with FPS,car speed etc, if you want!!!
Last edited by Eager Beaver; 12-22-2007 at 09:50 AM.