消失的可变文本
我有一个问题。当我创建可更改的文本时,一些字母会消失。我尝试使用多种字体,但没有改变!
一段代码:
FONT:
FontFactory.setAssetBasePath("font/");
this.mFontTexture = new BitmapTextureAtlas(256, 256, TextureOptions.BILINEAR_PREMULTIPLYALPHA);
和可变文本:
ChangeableText ty = new ChangeableText(20, CAMERA_HEIGHT / 2 - 80, mFont, "Game over!");
this.mScene.attachChild(ty);
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);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当
BitmapTextureAtlas
太小时,我就有了它。尝试将其放大(也许 512x512),这也取决于字体大小。I had it when the
BitmapTextureAtlas
was too small. Try making it larger (Maybe 512x512), it also depends on the font size.