android - How to reload the images when level comple(Andengine) -
i developing game using andengine. place coding
// private tiledtextureregion levelregion; int level; //in onloadresources() this.mtexture = new texture(2048, 512); this.levelregion=textureregionfactory.createfromasset(this.mtexture, this, "bg"+level +".png",0,0); this.mengine.gettexturemanager().loadtexture(this.mtexture);
when level complete , increased level , try call again onloadresources(). got error , screen in blank.. how fix problem .
Comments
Post a Comment