Spritefont appearing on 1 layout but on another it is blank?

0 favourites
  • 6 posts
From the Asset Store
An educational game for Fill in the Blanks. An easy to use template for developers to build larger games
  • So I'm having a weird problem. I have a spritefont in my game, and it is appearing on 1 layout when I create it but on another it is not appearing after the creation. Note, it was working before.

    The spritefont displays "100" in debug mode. It is visible and has 100 opacity. Black colored. I've tried to enlarge the text size and it still is not working. I put a low scale for e.g 0.1 , not working either. Also, the color, size and scale is set during creation.

    Strange thing is if I put the object out of view in the screen and destroy it at start of the layout.... it will now display when I create it. What? but why was it working on the layout before?

    The spritefont is already on a layout (graveyard) which I don't use so the game knows the object, hence I don't have to put it on the same layout and destroy it at start.

    Any ideas? I can't upload my project due to personal info.

  • Okay it's a bug, I filed it here

    https://github.com/Scirra/Construct-bugs/issues/8164

  • I tried your project and can't reproduce this bug.

    Check the spritefont object in debug mode when it's blank - see if it has correct size, scale, opacity settings and if it contains any text. Also see if there are any error messages in browser console.

  • dop2000

    There's no error in the console. The spritefont is there, visible and with 100% opacity

    I added an updated version on github, since I think the steps might be confusing.

    So you can launch the project and you don't have to do anything.

    Check the debug menu.. the SF "price" is there but blank.

    Furthermore just add a sprite on layout 2, and re launch the project. The spritefont will be rendered.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yeah, you are right, something weird is going on.

  • dop2000

    Thanks for testing & confirming again.

    I'll wait for a fix by the devs

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