Page 1 of 1

Animation Name / Animation Index Conversion

PostPosted: Thu Mar 25, 2004 9:46 am
by jazz_e_bob
char *animName (int animIndex);

int animIndex(char *animName);

:wink:

PostPosted: Thu Mar 25, 2004 10:04 am
by ingsan
Could you explain ? My poor C vocabulary makes me "blind" to this :cry:

PostPosted: Thu Mar 25, 2004 3:25 pm
by makslane
can be made :D

PostPosted: Wed Nov 17, 2004 5:15 am
by jazz_e_bob
ingsan wrote:Could you explain ? My poor C vocabulary makes me "blind" to this :cry:


char *animName (int animIndex);
returns the animation name given it's index.

int animIndex(char *animName);
returns the animation index given it's name.

At present, you can set an animation by name but can't read current animation name. :cry:

My suggested functions make it easier to use code like: "if not already playing this animation then play it."

if ( player.animIndex != animIndex("running") )
ChangeAnimation( "player", "running", FORWARD );

( 8 months to reply to that one! Thanks for your patience! :lol: )

Image

PostPosted: Wed Nov 17, 2004 5:41 pm
by ingsan
That's all right . . . No worry . . .
Image

:lol:

No, I'm just kidding :wink: Thank you, my friend ! Well, even if it is 8 months late, this tip is still very very helpful.
Thanks :wink:

PostPosted: Thu Nov 18, 2004 4:08 am
by jazz_e_bob
:D :D :D