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

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -