FlxBitmapTextField and html5 problem

89 views
Skip to first unread message

Artjom Vinnikov

unread,
Jan 10, 2015, 9:19:55 AM1/10/15
to haxef...@googlegroups.com
Hello. After reseting the state, text made with FlxBitmapTextField gets broken and looks like this:


I found this commit, however after using it text dissapears completely and i can`t restore it. Any ideas on this problem?


Artjom Vinnikov

unread,
Jan 14, 2015, 5:49:11 AM1/14/15
to haxef...@googlegroups.com
Any ideas?

Asmodean

unread,
Jan 14, 2015, 3:26:09 PM1/14/15
to haxef...@googlegroups.com


I had the same problem with resetState and html5. The reason was 'loadpixelizer' in PxBitmapFont, after changing to the AngelCode-Font and loadAngelCode it works fine for me in html5.

Artjom Vinnikov

unread,
Jan 15, 2015, 12:47:31 PM1/15/15
to haxef...@googlegroups.com
That helped. Thanks a lot!

среда, 14 января 2015 г., 22:26:09 UTC+2 пользователь Asmodean написал:

George Kurelic

unread,
Jan 17, 2015, 1:06:19 PM1/17/15
to haxef...@googlegroups.com
how did you know how to structure the xml for angelcode?

Asmodean

unread,
Jan 17, 2015, 2:26:16 PM1/17/15
to haxef...@googlegroups.com
You have to use BMFont. And have a look at the source-code of this FlxBitmapTextField demo, for the usage of the AngelCode-Loader.
Message has been deleted

George Kurelic

unread,
Jan 17, 2015, 6:43:09 PM1/17/15
to
Thanks for the link, that helped a ton.
Unfortunately, now the dimensions are working but characters are still block boxes.

<font>
 
<chars count="10">
 
<char id="48" x="0"  y="0" width="8" height="10" xadvance="8" xoffset="0" yoffset="0" page="0" chnl="15" letter="0"/>
 
<char id="49" x="8"  y="0" width="8" height="10" xadvance="8" xoffset="0" yoffset="0" page="0" chnl="15" letter="1"/>
 
<char id="50" x="16" y="0" width="8" height="10" xadvance="8" xoffset="0" yoffset="0" page="0" chnl="15" letter="2"/>
 
<char id="51" x="24" y="0" width="8" height="10" xadvance="8" xoffset="0" yoffset="0" page="0" chnl="15" letter="3"/>
 
<char id="52" x="32" y="0" width="8" height="10" xadvance="8" xoffset="0" yoffset="0" page="0" chnl="15" letter="4"/>
 
<char id="53" x="40" y="0" width="8" height="10" xadvance="8" xoffset="0" yoffset="0" page="0" chnl="15" letter="5"/>
 
<char id="54" x="48" y="0" width="8" height="10" xadvance="8" xoffset="0" yoffset="0" page="0" chnl="15" letter="6"/>
 
<char id="55" x="56" y="0" width="8" height="10" xadvance="8" xoffset="0" yoffset="0" page="0" chnl="15" letter="7"/>
 
<char id="56" x="64" y="0" width="8" height="10" xadvance="8" xoffset="0" yoffset="0" page="0" chnl="15" letter="8"/>
 
<char id="57" x="72" y="0" width="8" height="10" xadvance="8" xoffset="0" yoffset="0" page="0" chnl="15" letter="9"/>
 
</chars>
</font>

it looks like flixel is ignoring the pages, info, and common nodes, so other than that this looks legit.
here's the image I'm using


George Kurelic

unread,
Jan 17, 2015, 8:01:12 PM1/17/15
to
It turns out it's changing every color in the bitmap to black and only preserving the alpha. the only way to make maintain the original color is to set useTextColor to false.
Reply all
Reply to author
Forward
0 new messages