Help with SpriteFont

0 favourites
  • 6 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • My first marketable game with Construct 2 is complete and I'm just tweaking some of the UI, however I've been having trouble trying to load a font into Construct 2 via the Sprite Font plugin. I'm trying to load the numbers from the well-renowned Kenney's Platformer Pack, has anybody used the Sprite Font plugin or Kenney's fonts before? I uploaded some of the custom number fonts as an example, could it be because the the numbers are individual sprites and not together?

    [attachment=0:2cfrgd9c][/attachment:2cfrgd9c]

    [attachment=1:2cfrgd9c][/attachment:2cfrgd9c]

    [attachment=2:2cfrgd9c][/attachment:2cfrgd9c]

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yep. Sprite fonts are a sheet of characters and you tell Construct 2 what are the characters and the size of them.

    Like this one:

  • This whole sprite sheet won't work either, am I doing something wrong?

    [attachment=0:kiuco2wk][/attachment:kiuco2wk]

  • Are you setting up the characters and sizes etc in the spritefont properties?

  • The font is not laid out in a grid and won't work unfortunately - the top row and 2nd row have a different number of characters and Sprite Font requires the characters in the image to be evenly spaced. I recommend using GYFM if you haven't tried it already. You can easily recreate the font effect you showed above and you can always edit an exported png in GIMP or similar for more effects.

  • awmace5, you have to space the characters evenly. Get the biggest character, put it inside a square and space them all in similar squares, with one character per square.

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