1
我創建了一個小屏幕管理器(處理多個場景),其中每類從所謂的屏幕自定義類擴展,並執行其負載方法如下(舉例):Andengine精靈古怪行爲
public Scene load() {
BitmapTextureAtlas mBitmapTextureAtlas = new BitmapTextureAtlas(512, 1024, TextureOptions.BILINEAR_PREMULTIPLYALPHA);
SceneManager.loadTexture(mBitmapTextureAtlas);
scene.attachChild(bgSprite);
return scene;
}
問題是,有時候,如果你在屏幕之間快速移動,一些精靈不會被渲染,有時它們(這取決於我在場景之間切換的速度)。
我想這個問題可能是我將精靈附加到場景中,但仍然沒有完全加載到內存中。是真的嗎?任何想法如何解決這個問題?
爲此,有一種onLoadScene()方法,試着在那裏移動代碼。 – JohnEye 2012-04-19 19:39:56