Animation Name / Animation Index Conversion

Ideas for Game Editor evolution.

Animation Name / Animation Index Conversion

Postby jazz_e_bob » Thu Mar 25, 2004 9:46 am

char *animName (int animIndex);

int animIndex(char *animName);

:wink:
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby ingsan » Thu Mar 25, 2004 10:04 am

Could you explain ? My poor C vocabulary makes me "blind" to this :cry:
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby makslane » Thu Mar 25, 2004 3:25 pm

can be made :D
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby jazz_e_bob » Wed Nov 17, 2004 5:15 am

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
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby ingsan » Wed Nov 17, 2004 5:41 pm

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:
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby jazz_e_bob » Thu Nov 18, 2004 4:08 am

:D :D :D
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest