For joystick control, you may try the following code :

Code:

var speed = 5; // play with 5
var jForce;
action my_car()
{
while(1)
{
jForce = (joy_6 - joy_5);
// move forward and backward
c_move(my,vector((joy_6-joy_5)*speed*time_step,0,0),nullvector,GLIDE);
// turn left and right
c_rotate(my,vector(-joy_force.x*time_step*jForce,0,0),USE_AXIS);

// follow cam
vec_set(camera.x,vector(-200,0,40)); // play with the vec position
vec_rotate(camera.x,my.pan);
vec_add(camera.x,my.x);

//camera.pan += 0.2 * ang (my.pan - camera.pan) * time_step; // line A

vec_set(camera.pan,my.pan); // line B

wait(1);
}
}



If you want a little bit camera lag uncomment line A and comment out line B.
My joystick may not the same as yours, try to modify those joy_???? youself.

Have fun!