# 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.

## 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 on other sites

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();

}


• 18
• 29
• 11
• 21
• 16