本文介绍了Dissapearing ChangeableText的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

这篇关于Dissapearing ChangeableText的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 08:27