hmmm..... depends on how much you wanna do buut.... it could be possible just have to overwrite a few things first
var sprite = createSprite;
createSprite = function (x, y, w, h) {
var newSprite = sprite(x, y, w, h);
newSprite.currentAnimation = "";
// unfortunately I can't map this because this uses native js... can't write a faster one in this container
newSprite.esetAnimation = function (key) {
newSprite.currentAnimation = key;
newSprite.setAnimation(key);
}
return (newSprite)
}
I'll probably have to test it since i wrote it here but you get the general idea ooh wait i think i thought of a better idea actually one sec! nvm it's gonna be waay more confusing if i bring that into the mix plus the objects aren't cooperating i think this might be your best option