Jump to content

View more

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Animation Tree in code

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 NiteLordz   Members   

808
Like
0Likes
Like

Posted 13 January 2012 - 08:16 AM

Is there any tutorials that anyone knows of about how to go about implementing these in code. Is this really just a huge logic function?

if walking and strafing
- play walk and strafe


currently how i have my animations working is that idle by default. then if a user presses the forward key, i apply the walk animation or run animation based on the pressure of the key press. and if the action button is pressed, i apply an attack animation to the second track of the mesh, and then the two animations are blended together.

i am just looking for advice or guidance and maybe a tutorial or a good read on the subject about how to optimize and make it clean.

thanks much in advance
Code makes the man

#2 DjMaSh   Members   

198
Like
0Likes
Like

Posted 14 January 2012 - 03:59 AM

theres many ways to implement this sort of thing. i would suggest downloading some animation packages and looking at their interfaces.

You want to create some sort of blend tree with each leaf node being an animation to play and weighted edges between each node.

Heres some related articles i havent read

http://www.gamasutra.com/view/feature/3456/animation_blending_achieving_.php
http://flohofwoe.blogspot.com/2009/01/animation.html




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.