1 decade ago by Ash_Blue
I need to draw a pre-rendered Canvas as an ig.AnimationSheet
Problem is ig.Image doesn't appear to accept Canvas images. I need the pivot and some other animation methods. Any ideas on the most efficient way to get this working?
I think something like this would fix the issue at hand but haven't tried it.
If this is that simple, any reason why ImpactJS's core can't support this? Only potential problem I could think of is it might cause issues with Ejecta.
this.animSheet = new ig.AnimationSheet(this.canvas, this.canvas.width, this.canvas.height);
Problem is ig.Image doesn't appear to accept Canvas images. I need the pivot and some other animation methods. Any ideas on the most efficient way to get this working?
I think something like this would fix the issue at hand but haven't tried it.
ig.Image.inject{{ load: function (loadCallback) { // If a canvas image hijack me and set the data, then ignore this.parent below this.parent(loadCallback); } });
If this is that simple, any reason why ImpactJS's core can't support this? Only potential problem I could think of is it might cause issues with Ejecta.