A problem I have with several plugin : how to force the runtime to load Image when I do something like a new Image() inside my plugin ?
Usually, we do something like :
var img = new Image();
img.onload = function (){
ctx.drawImage(img);
}
img.src = myurl
But onload() doesn't fire. Is there a way to do that ?
I saw that some plugin for Scirra use
this.runtime.wait_for_textures.push(...);[/]
But it doesn't work either.
So I'm stuck...