M Navarro Problem with text warp.
Posts 14
Added by M Navarro 10 months ago

I need create a label with wrapText. In this case I have the String "Extra Movement", when a set the label.width = 70 the word "MOVEMENT" is hided and the label was center too far. I dont know where is the problem. Any help ?

label = cc.LabelTTF.labelWithString("EXTRA MOVEMENT", cc.SizeMake(70,50), cc.TextAlignmentLeft, "ALoveofThunder", 8);

Shun Lin RE: Problem with text warp.
Posts 160
Added by Shun Lin 10 months ago

It looks like you are using Cocos2d-html5 alpha1 version. The alpha version has a bug in LabelTTF display.

There are 2 solutions:
1. The width must be no less than 77.
2. Update the engine to beta version, which supports auto word warp.
PS: The beta version will be released soon. You may download the code from Github before release.

M Navarro RE: Problem with text warp.
Posts 14
Added by M Navarro 10 months ago

Shun Lin wrote:

It looks like you are using Cocos2d-html5 alpha1 version. The alpha version has a bug in LabelTTF display.

There are 2 solutions:
1. The width must be no less than 77.
2. Update the engine to beta version, which supports auto word warp.
PS: The beta version will be released soon. You may download the code from Github before release.

Ok ! Thanks for info Shun.


(1-2/2)