Third Person Camera Codes in C-Script Language

Posted By: Anonymous

Third Person Camera Codes in C-Script Language - 09/27/11 04:20

I'm a newbie working on my first game using A6, hence the request for codes in C-script and not C-lite. I need help with good third person camera codes. I'd prefer cameras like those used in God of War, Prince of Persia or Devil May Cry. If you're feeling generous, you can also help out in my other thread http://forum.conitec.net/ultimatebb.cgi.
Posted By: bart_the_13th

Re: Third Person Camera Codes in C-Script Language - 09/27/11 05:28

Well, we can help you get your code work if you have trouble with it, but most of us wont give our code nor do the coding for you(at least not for free).
Why don't you check the A6 demo/sample? It has the 3rd person code AFAIK.
Posted By: Anonymous

Re: Third Person Camera Codes in C-Script Language - 09/27/11 09:21

The A6 default third person camera is really crap. Really, really crap. If someone can adjust that, I'll be okay with it cause I've been trying to adjust it myself.
Posted By: Mythran

Re: Third Person Camera Codes in C-Script Language - 09/28/11 18:16

var cam;
var camera_distance = 200; //Use this to set the distance between camera and player.

function drakun_camera()
{
my.pan -= 4 * mouse_force.x * time_step;
camera.pan = my.pan;
camera.tilt += mouse_force.y * 6 * time_step;
camera.tilt = clamp(camera.tilt,-60,60);
cam = fcos(camera.tilt,- camera_distance);
vec_set(camera.x,vector(my.x + fcos(camera.pan,cam),my.y + fsin(camera.pan,cam),my.z + 20 + fsin(camera.tilt,- camera_distance)));
}

Here you go for free... If needed any change just tell and i'll try to help laugh
Goodluck

Oh this is simple but effective :), Good luck about the gravity anomaly x)
Posted By: Anonymous

Re: Third Person Camera Codes in C-Script Language - 11/27/11 19:06

you sir are my hero.
© 2024 lite-C Forums