开发者

CCLabelBMFont fnt file not working properly

so I have this:

开发者_JAVA技巧
CCLabelBMFont *timeLabel = [[CCLabelBMFont alloc] initWithString:@"abc" fntFile:@"clean_3.fnt"];

in a CCScene init method

using this font: http://fontstruct.com/fontstructions/show/clean_35 which is TTF

using this program to convert the format: http://www.angelcode.com/products/bmfont/ and tried http://www.n4te.com/hiero/hiero.jnlp .

I'm getting: "Invalid texture for sprite" error.

I have tried deleting the app off simulator and device and tried it again, same thing. Any help would be appreciated. I do not want to use CCLabelTTF since I'll be updating this text every frame.


Looks like I forgot the PNG file. Thanks ubert!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜