Need help with Character Size in Sprite Fonts

Discussion and feedback on Construct 2

Post » Sun Jul 28, 2013 1:33 am

Hi,

Since a dynamically updating text object slows down WebGL on CocoonJS, I started looking into the Sprite Font plugin.

What I immediately notice in the Manual entry is that all characters must essentially be the same size(in order to fit completely into the sprite image).

Does that mean that you can't have different character sizes?
B
10
S
3
Posts: 233
Reputation: 1,537

Post » Sun Jul 28, 2013 1:36 am

You can use the "Set character width" action. It's explained in the manual.
ImageImageImage
B
71
S
19
G
180
Posts: 3,481
Reputation: 103,183

Post » Sun Jul 28, 2013 1:44 am

Oh, I thought it had to be done on font import. Didn't think it'd have to be done inside the Event Sheet.
Do you know if i have the set the individual Character Widths for every layout, or doing once at game startup should be enough for the entire duration of the game?

Still, it's gonna be some work! ^^
Thank you a lot for the help! :)

Xionor2013-07-28 01:46:17
B
10
S
3
Posts: 233
Reputation: 1,537

Post » Sun Jul 28, 2013 2:24 am

[QUOTE=Ashley] Setting the character widths in the 'On created' event should fix it without needing any functions or anything else.[/QUOTE]
This does imply every layout, but you should have a shared event-sheet to deal with this.
ImageImageImage
B
71
S
19
G
180
Posts: 3,481
Reputation: 103,183


Return to Construct 2 General

Who is online

Users browsing this forum: oosyrag and 7 guests