Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, SBGuy), 987 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Third Person Camera Codes in C-Script Language #383909
09/27/11 04:20
09/27/11 04:20

T
tolu619
Unregistered
tolu619
Unregistered
T



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.

Re: Third Person Camera Codes in C-Script Language [Re: ] #383912
09/27/11 05:28
09/27/11 05:28
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
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.

Re: Third Person Camera Codes in C-Script Language [Re: bart_the_13th] #383918
09/27/11 09:21
09/27/11 09:21

T
tolu619
Unregistered
tolu619
Unregistered
T



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.

Re: Third Person Camera Codes in C-Script Language [Re: ] #384052
09/28/11 18:16
09/28/11 18:16
Joined: Sep 2006
Posts: 292
M
Mythran Offline
Member
Mythran  Offline
Member
M

Joined: Sep 2006
Posts: 292
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)

Last edited by Mythran; 09/28/11 18:18.
Re: Third Person Camera Codes in C-Script Language [Re: Mythran] #388061
11/27/11 19:06
11/27/11 19:06

T
tolu619
Unregistered
tolu619
Unregistered
T



you sir are my hero.


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1