Help with SpriteFont

Get help using Construct 2

Post » Mon Dec 29, 2014 10:50 pm

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?

hud_2.png


hud_1.png


hud_0.png
You do not have the required permissions to view the files attached to this post.
B
24
S
5
G
1
Posts: 153
Reputation: 2,088

Post » Tue Dec 30, 2014 8:38 pm

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:

Image
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
21
S
6
G
3
Posts: 658
Reputation: 3,843

Post » Wed Dec 31, 2014 4:56 am

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

sheet.png
You do not have the required permissions to view the files attached to this post.
B
24
S
5
G
1
Posts: 153
Reputation: 2,088

Post » Wed Dec 31, 2014 5:00 am

Are you setting up the characters and sizes etc in the spritefont properties?
B
62
S
20
G
56
Posts: 1,077
Reputation: 36,021

Post » Wed Dec 31, 2014 5:19 am

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.
A big fan of JavaScript.
B
76
S
20
G
76
Posts: 2,283
Reputation: 47,550

Post » Mon Jan 05, 2015 1:04 pm

@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.
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
21
S
6
G
3
Posts: 658
Reputation: 3,843


Return to How do I....?

Who is online

Users browsing this forum: dop2000, max2612, Yahoo [Bot] and 5 guests