Skip to main content
GameDev.net gamedev.net
🔒 Locked

XNA Storyboard Animation project

Started by Instruo Sep 17, 2010 at 12:59 PM 5 replies 2.4k views
Original Post
Instruo
Instruo
Earlier this week I got tired of not having a good (i.e. Silverlight-esq) mechanism for doing generalized animation in XNA. As such, I started a project for doing Storyboard animation using XNA which I just added to CodePlex.

http://xnastoryboard.codeplex.com

Feel free to give it a try and let me know any feedback on how I can make it more useful.

Thanks!
"Game Programming" in an of itself does not exist. We learn to program and then use that knowledge to make games.
Xunil_RJ
Xunil_RJ
Although the Silverlight/WPF Story Board approach is very powerfull, the animated object need to implement a very intrusive contract ( the inheritance and the Dependecy Properties ).

Why not make a more functional approach?
Instruo
Instruo
The only downside I've personally found would be when you need to implement a different base class that you don't have access to (DrawableGameComponent, for example). Since you obviously can't make DrawableGameComponent inherit from DependencyObject, it becomes a bit of an annoyance (though, not one that can't be overcome, just not as cleanly).

I personally quite like the DependencyObject/Property approach because of it's flexibility. Out of curiosity, what approach would you find "more functional"?
"Game Programming" in an of itself does not exist. We learn to program and then use that knowledge to make games.
Xunil_RJ
Xunil_RJ
Exactly... the inheritance is really a problem...

but for example...

FloatAnimation fa = new FloatAnimation()
{
Duration = TimeSpan.FromSeconds( 1.0 ),
From = 0.0f,
To = 1.0f,
TargetAction = ( value ) => UserControl.Opacity = value
};
Instruo
Instruo
This is an excellent suggestion, thanks! I'll look into it and see about adding this functionality, so that either option is available
"Game Programming" in an of itself does not exist. We learn to program and then use that knowledge to make games.
Instruo
Instruo
I have updated the project and have released version 1.1 to CodePlex.

Thanks and let me know what else I can do to improve!
"Game Programming" in an of itself does not exist. We learn to program and then use that knowledge to make games.
Xunil_RJ
Xunil_RJ
I have a XNA project too, in Codeplex ( http://machinaaurum.codeplex.com/ ), maybe we can exchange some ideas. I will send you a private message with my email and live messenger.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.