Jump to content
  • Advertisement
Sign in to follow this  
football94

CALLING A METHOD AT A CERTAIN KEYFRAME

This topic is 2147 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 Guys

 

Ive been researching different approaches when it comes to 3d model animation and decided

to start experimenting with the xna skinning sample(first link below) and wanted to ask the question where

would I start to go about calling a method at a certain keyframe within the animation(ex. if at keyframe 30 fire

particles) so far Ive been following the modifications done to the skinning sample in the second link below(gogo robot)

and also wanted to ask the question should I stick with that link or is there another way.

 

 

                                                                    Thankyou

 

 

xna skinning sample

http://xbox.create.msdn.com/en-US/education/catalog/sample/skinned_model

 

 

modified xna skinning sample

http://www.gogo-robot.com/2011/05/30/xna-skinned-model-animations/

Share this post


Link to post
Share on other sites
Advertisement


where

would I start to go about calling a method at a certain keyframe within the animation(ex. if at keyframe 30 fire

particles)

 

 

got it working just stuck the piece of code below into the main game1 update method

if (animationPlayer.currentTimeValue < TimeSpan.FromMilliseconds(32))
            {

                soundHyperspaceActivation.Play();
                
            }

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!