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 Professional Discussion / Need help adding limbs 4 3rd person cam

Author
Message
AJ Schaeffer
16
Years of Service
User Offline
Joined: 22nd Aug 2009
Location: Jacksonville,FL
Posted: 18th Sep 2010 07:00
How can i creat a child and a paretn limb because i need my cam to be over the shoulder, but idk how to make limbs...

Brendy boy
21
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 18th Sep 2010 19:47
make mesh from object you want to add as a limb
then use add limb command

AJ Schaeffer
16
Years of Service
User Offline
Joined: 22nd Aug 2009
Location: Jacksonville,FL
Posted: 18th Sep 2010 19:59
Quote: "link limbs in chain sequence"

what does that mean?

Brendy boy
21
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 18th Sep 2010 21:16 Edited at: 18th Sep 2010 21:17
Quote: "what does that mean?"

it means you can't add limb 4 if you didn't add limb 3 before that. And you can't add limb 3 if you didn't add limb 2 before that, etc..

When you create an object it has 1 limb with an index 0 so when you start adding limbs to it you need to start at limb 1, then 2 etc...

AJ Schaeffer
16
Years of Service
User Offline
Joined: 22nd Aug 2009
Location: Jacksonville,FL
Posted: 18th Sep 2010 21:41
i started at 1, and then i get that. i even tried starting at 0

Brendy boy
21
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 18th Sep 2010 21:51
post the exact code that you are using, i don't know what you are doing wrong. Every primitive in dark basic has only one limb and the code i gave must work. If you are loading the object which has more than one limb then you first must determine the limb count and start adding limb at that index.
something like:


AJ Schaeffer
16
Years of Service
User Offline
Joined: 22nd Aug 2009
Location: Jacksonville,FL
Posted: 18th Sep 2010 22:38
sorry its so messy lol


Brendy boy
21
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 18th Sep 2010 23:00
use the code i gave you in my previous post

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 18th Sep 2010 23:45 Edited at: 18th Sep 2010 23:47
You could just add a help object to follow the hero, and put camera on it .In this little piece of code, you can see how to position an object over another and displace where you want.



I'm not a grumpy grandpa
AJ Schaeffer
16
Years of Service
User Offline
Joined: 22nd Aug 2009
Location: Jacksonville,FL
Posted: 19th Sep 2010 00:09
do you need a dll for helper because its not turning blue in the editor, and its not in the index...

Brendy boy
21
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 19th Sep 2010 01:11
helper is a variable - an object number

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 19th Sep 2010 01:33
@Brendy boy
Thk lol

I'm not a grumpy grandpa
AJ Schaeffer
16
Years of Service
User Offline
Joined: 22nd Aug 2009
Location: Jacksonville,FL
Posted: 19th Sep 2010 01:59
how can i make the cam point in the direction of the object (set cam to obj orien doesnt work it points opposite)

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 19th Sep 2010 02:30
Just put a rem in line 26 :p




I'm not a grumpy grandpa

Login to post a reply

Server time is: 2026-07-23 10:30:26
Your offset time is: 2026-07-23 10:30:26