Disappearing ChangeableText

蹲街弑〆低调 提交于 2019-12-08 06:35:32

问题


I have a problem. When i create a changeable text then some letters disappears. I tried with sever fonts and it's not changing!

Piece of code:

FONT:

FontFactory.setAssetBasePath("font/");
this.mFontTexture = new BitmapTextureAtlas(256, 256, TextureOptions.BILINEAR_PREMULTIPLYALPHA);

And the changeabletext:

ChangeableText ty = new ChangeableText(20, CAMERA_HEIGHT / 2 - 80, mFont, "Game over!");
this.mScene.attachChild(ty);

回答1:


I had it when the BitmapTextureAtlas was too small. Try making it larger (Maybe 512x512), it also depends on the font size.



来源:https://stackoverflow.com/questions/8278845/disappearing-changeabletext

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!