White Text goes horrible in new version?

0 favourites
  • 9 posts
From the Asset Store
The ultimate voice pack filled with 1,536 files of .......wav and mp3 of individual numbers, letters, and words (that go
  • I have a blank project and made the layer background light blue.

    I then put some text objects on, and changed the font to Verdana(18).

    all good.

    however, if I now change the font colour to white, and run it, the text comes out like some 8-bit font, totally different to if I change the font to red or black or any other colour (in which case it looks perfect).

    Any ideas why white text would go horribly wrong?

  • Strangely, that's a product of WebGL. Try turning it off for a moment to see the difference.

  • Yes, switching off WebGL has fixed it.

    Result!

  • You shouldn't use the Text object with WebGL. It's VERY performance heavy, especially on mobile devices. Rather use Sprite Fonts.

  • Xionor - the Text object should not be that performance heavy in WebGL mode, providing you don't change the text every tick.

    nutmix - post a .capx and we can investigate why the quality is worse. You shouldn't have to turn off WebGL - it can make your game half as fast or less.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Ashley - On mobile devices, even one-time changes/updates to the Text object induce a small hickup/stutter. Hence why I recommend to avoid it altogether.

  • Ashley, here is a project with a couple of text objects in, if you look a the white text, you will see that the B is thicker, and that XT join togehter etc. Its like the white version has gone into 8 bit bold mode. The red version has some anti aliasing issues too, but at least the text looks the same as black. If you switch of webGL, the problem goes away. Looks bad on both FF and Chrome on Windows 7. Looks ok on iphone 4 and ipad 3

    https://www.dropbox.com/s/pai6m8so3mua9g9/badtext.capx

  • nutmix - not sure we can fix that I'm afraid. The way the WebGL renderer draws text, it can't take in to account the background color, since it draws via rendering to a texture, then copying the texture to the display. In canvas2D it draws directly on to the display so it can properly blend with the background. I'm not sure what we could do to fix this or work around it.

  • No problem, as long as you are aware of it. I just disable webGL in all my projects (which are mainly for mobile, which doesnt support it yet).

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)