Jump to content
  • Advertisement
Sign in to follow this  

Animation Problem

This topic is 4562 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I am trying to make multi animations with .x files.I can set and play the animations but i have a problem.I want to use 4 different animations one by one but for this i need to detect end of each animations but i can't do it. Does anyone know's how can i detect my animation ends. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
You can get the period of an animation set, and query the animation controller's current time, and the animation position of each track. That should be all the time data you need--query the animation position of the track until it approaches the end of the period.

Specifically, what I do is to examine ( period - animpos ). If that amount is less than the amount I'm about to pass to AdvanceTime(), I key the new animation to a new track to start at current time + ( period - animpos ), and the old animation to end at the same time.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!