Remove or Delete Animation

Aug 16, 2012 at 12:29 PM

hello Jessie !

In some situations i want to remove or delete the current Animation from screen.

How can i do that ?

Thanks for sharing a great tool !!!!

Aug 16, 2012 at 5:30 PM

Do you mean in the editor? You can delete keyframes or bones through the respective menus. The only way to remove the entire animation is just to start a new animation.

Do you mean you just don't want to draw it in your game? In that case, just don't call the AnimationPlayer.Draw method.

If you're wanting to remove a specific animation from an existing player, there's no way built in to do that. And if you add a method to do that, keep in mind that there's only a single instance of each animation, loaded through the content pipeline.

Aug 17, 2012 at 3:38 AM

First of all , thanks for replying me ^^

Hm...i have an excercise making a game based on Plants vs Zombies.

And i want to create instance of each animation for each Zombie i have.

Would it be possible ?

Aug 17, 2012 at 1:52 PM

Sure, Plants vs. Zombies uses a skeletal animation system. (At least it looks like it does.)

You'll need a class to represent each enemy type, and inside that you'll have a Demina AnimationPlayer. It should be pretty easy. Let me know if you run into problems.

Aug 18, 2012 at 4:08 AM
Edited Aug 18, 2012 at 4:09 AM

Thanks for hinting me ^^.

This great tool helps me saving tons of time for animation^^

Oct 9, 2012 at 6:43 AM

Thanks alot Demina, thanks a lot Jesse.

We have just done our project Plants Vs Zombies based on the one from Popcap.

Without this tool, we can't finish this project easily.