Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Camera follows

Author
Message
dared
20
Years of Service
User Offline
Joined: 20th Nov 2004
Location:
Posted: 7th Feb 2005 19:43
i need code for a camera to follow the player

I have already tried to do it my self i have used darkbasics tutorials, but they were too complicated.

Dared

Who Loves coding?
Any1?
Oh forget it!
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 7th Feb 2005 22:25


The angle should be taken from your object.

Multiplayer DLL on its way! Easy to use DLL for client/server multiplayer games.
DesertEagle
20
Years of Service
User Offline
Joined: 7th Feb 2005
Location:
Posted: 8th Feb 2005 01:13
I think there is already a built-in function for that....it gets just the same parameters....check the code below.
8th Demension
20
Years of Service
User Offline
Joined: 24th Jan 2005
Location: NY
Posted: 8th Feb 2005 10:32
There is a built in function, here is the code.
I don't know what Colflag is, I just put in a 1 and it works fine.
xpos,ypos,zpos,angle,camdist,camheight,camsmoothing,colflag
8th Demension
20
Years of Service
User Offline
Joined: 24th Jan 2005
Location: NY
Posted: 8th Feb 2005 10:37
whops messed it up, here is the code... again

SET CAM TO FOLLOW
xpos,ypos,zpos,angle,camheight,camdist,camsmooth,colflag

Login to post a reply

Server time is: 2025-05-25 04:34:38
Your offset time is: 2025-05-25 04:34:38