Draw Animated Characters In Windows

Draw Animated Characters In Windows​
Version 1.0​
Description:
This script is for other scripters who may need this functionality.
With this script you can add a new method to windows which will draw animated characters.

Usage:
You need to include the EVG::AnimatedDrawCharacter Module into a Window class.
Then you can use this method: draw_animated_character(character_name, character_index, x, y, direction = 2)

Download:
click

mfg.
This is exactly what I needed for my menu, but I noticed a bit of a problem.


The script works fine, but it never disposes the "EVG::AnimationStateMachine" objects, so it creates a memory leak. Is there any way to get rid of this little problem?


Other than this, this script is great, thanks a lot for it!
Yeah I dont know why but I let the class you mentioned inherit from sprite_base xD. I removed the inheritation line so know it should not create any leaks.
It's not working on me where should I put that?
You need to put it in the Materials Section in the Script Editor. But this Script does not do anything by its own. It just gives functionality to draw animated characters in Window Classes. What do you want to do with it?

Original thread: https://forums.rpgmakerweb.com/threads/draw-animated-characters-in-windows.35644/