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 / 2D Articulated Skeleton

Author
Message
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 8th Sep 2007 03:45 Edited at: 8th Sep 2007 03:48
Quote: "Hey obese87, You said you use arrays to store animation. how do you actually do this? "

Well I haven't made it, but the theory is that you make an array like this:

This would create an object with 10 limbs (not using the 0 as there will be times when no limb is selected) and each limb has 21 parameters, the first I would use to store the parent limb, and 1 to 20 are the limb's angle in each of these frames.
Each limb's position on screen is reliant on its parent's position, a benefit of doing it like this is that we can use a variable to change the current frame and then point to all the limbs in turn and get their positions in the same frame.
Hope I explained that OK

Off Topic: what are A and B called here: DIM anim(A,B), are they fields or what? I hate explaining things to do with arrays because I don't know what to call these. No worries DD

[edit]
@Sinani
I must've taken ages to post cos that wasn't there before
Yours would work but you've only made a single limb.

In programming, nothing exists
Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 8th Sep 2007 04:10 Edited at: 8th Sep 2007 04:13
Quote: "Yours would work but you've only made a single limb"

It was only a single limb because it was an example.

Quote: "what are A and B called here: DIM anim(A,B), are they fields or what?"

Is it the value that represents A and B?

how do you make a sig?
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 8th Sep 2007 05:35
Intersting....
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 8th Sep 2007 19:10 Edited at: 8th Sep 2007 19:10
Quote: "Quote: "what are A and B called here: DIM anim(A,B), are they fields or what?"
Is it the value that represents A and B?"

No not the value, are they called dimensions?
I just wanted to know what they're called so I can explain better.

In programming, nothing exists
Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 8th Sep 2007 19:38
yes, if it's not the value, it's the dimensions. Right now there are 2 dimensions. If you added a C, 3 dimensions. Right?

how do you make a sig?
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 8th Sep 2007 20:01
Yeah that's what I meant, thanks

In programming, nothing exists

Login to post a reply

Server time is: 2025-06-02 08:17:19
Your offset time is: 2025-06-02 08:17:19