Dissapearing ChangeableTextDissapearing、ChangeableText

2023-09-07 09:11:10 作者:劳资,你他妈爱不起

我有一个问题。当我创建一个多变的文本,然后一些字母自败。我试着用断绝字体和它不改变!

code海贼王:

FONT:

  FontFactory.setAssetBasePath(字体/);this.mFontTexture =新BitmapTextureAtlas(256,256,TextureOptions.BILINEAR_ preMULTIPLYALPHA); 

而changeabletext:

  ChangeableText TY =新ChangeableText(20 CAMERA_HEIGHT / 2  -  80,mFont,游戏结束了!);this.mScene.attachChild(TY); 

解决方案

我是有当 BitmapTextureAtlas 太小了。尝试使较大的(512×512也许),它也取决于字体的大小。

I have a problem. When i create a changeable text then some letters dissapears. 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);

解决方案

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

相关推荐