开发者

How to reload the images when level comple(Andengine)

I am developing a game using andengine. i place this coding

//

pr开发者_运维知识库ivate 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 , i increased the level and i try call again onLoadResources(). I got error and screen in blank.. How to fix this problem .

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜