开发者

CCLabelBMFont fnt file not working properly

开发者 https://www.devze.com 2023-02-17 18:22 出处:网络
so I have this:开发者_JAVA技巧 CCLabelBMFont *timeLabel = [[CCLabelBMFont alloc] initWithString:@\"abc\" fntFile:@\"clean_3.fnt\"];

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

精彩评论

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

关注公众号