CALLING A METHOD AT A CERTAIN KEYFRAME

Started by
0 comments, last by football94 10 years, 7 months ago

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/

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

This topic is closed to new replies.

Advertisement