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 / Limbs for more than one object

Author
Message
Mikeygd3
12
Years of Service
User Offline
Joined: 18th Dec 2013
Location:
Posted: 8th Apr 2014 17:45
i know how to add a limb to one object but then idk how to for more than one
Barry Pythagoras
12
Years of Service
User Offline
Joined: 14th Mar 2014
Location:
Posted: 8th Apr 2014 18:17
No difference.
Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 8th Apr 2014 21:54
You mean limbs for more than one object, or 1 object with more than one limb?

Here are 2 objects each with a limb:


666GO†O666
Mikeygd3
12
Years of Service
User Offline
Joined: 18th Dec 2013
Location:
Posted: 9th Apr 2014 02:26
ohh okay thank you Derek! i didnt know that i could use the same mesh for different limbs. what im trying to do is make a way to detect if im in front of the other object.
Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 9th Apr 2014 03:01
Quote: "ohh okay thank you Derek! i didnt know that i could use the same mesh for different limbs. what im trying to do is make a way to detect if im in front of the other object.
"


This may or may not help you: PICK OBJECT
This command will return the Object Number of the closest object at the specified screen coordinates.

666GO†O666
Mikeygd3
12
Years of Service
User Offline
Joined: 18th Dec 2013
Location:
Posted: 9th Apr 2014 03:08
ooh that may help with something else tho. like interacting with objects on the screen.
Mikeygd3
12
Years of Service
User Offline
Joined: 18th Dec 2013
Location:
Posted: 5th May 2014 23:52
okay heres my code focus on the limb part.
it works without this part: add limb 1,s,1


make object box 9999,1,1,1

make mesh from object 1,9999`2+n

for n=2000 to 2010
make object box n,2,2,2
position object n, object position x(n-1000), object position y(n-1000),object position z(n-1000)
next n
for s = 1 to 7
for n=2000 to 2010
add limb 1,s,1
add limb n,1,1
NEXT S
next n
Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 6th May 2014 01:36 Edited at: 6th May 2014 01:38
Looks like you're using POSITION OBJECT incorrectly.

You're telling it to position object number n-1000 which doesn't exist. Only n would work there because you've only created n.

Maybe you meant the -1000 to go outside of the brackets to be part of the positioning rather than the object number?

666GO†O666
Mikeygd3
12
Years of Service
User Offline
Joined: 18th Dec 2013
Location:
Posted: 6th May 2014 17:14
that works fine, im not having problems with position object. i just need help on the limbs
Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 6th May 2014 18:11 Edited at: 6th May 2014 18:18
Looks like your next s and next n positions are reversed.

I can't really help you using these small snippets unless you post a complete standalone piece of code that anyone can try without adding a bunch of stuff.

In other words, instead of pulling code from your prog. that I can't run, make something from scratch with limbs that you think should work. Once you know the principles then you can work it back into your real program.

666GO†O666

Login to post a reply

Server time is: 2026-07-06 04:28:55
Your offset time is: 2026-07-06 04:28:55