I'm passing a Sprite instance to a custom plugin I'm making, when passed I try to change its frame. I also tried changing its frame a few seconds later and got the same results.
Here's the function I'm passing the Sprite to in my custom plugin.
Acts.prototype.SetSprite = function (sprite)
{
if (!sprite) return;
cr.plugins_.Sprite.prototype.acts.SetAnimFrame.call(sprite, 2);
};[/code:1t1fb5x5]
Here's the error:
[code:1t1fb5x5]Uncaught TypeError: undefined is not a function
http://localhost:50000/Sprite_plugin.js, line 1529 (col 9)[/code:1t1fb5x5]
The function itself is called successfully, but the error seems to refer to a function call in Sprite/SetAnimFrame.
Any idea what's going on?