How do I switch Sprite font to Spritfont+?

Get help using Construct 2

Post » Mon Jan 02, 2017 10:17 pm

Hello.
I have a game made by someone else, using Sprite Font.
I want to change the width of the characters so the spacing would be different from letter to letter - using JSON. The problem is that the creator of this game used the plugin "Sprite Font", while there are "Sprite Font" and "Spritefont+". Appearnately, only the "+" has the ability to change thee characters' width while the other one doesn't.
Is there a way to make the text objects configured as sprite font into Spritefont+? it seems that the only option is deleteing the existing sprite fonts and recreate them again as Spritefont+ - completely unsmart I guess...
Changing the plugin "Sprite font" to "Spritefont+" in the Object Type Properties isn't available.

Thanks all!
B
4
S
1
Posts: 6
Reputation: 262

Post » Mon Jan 02, 2017 10:26 pm

You can use that .json to feed the action 'Set character width' in a loop.

Dont ask me how to parse that json in an array, i have not done that yet. But i guess it is a bit like this.
https://www.scirra.com/tutorials/978/ex ... -game-card

No need to replace them then. Unless there are other reasons to do so.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Mon Jan 02, 2017 10:45 pm

You don't need SF+, it just saves a step. You can set each character width in the built in SF.

https://www.scirra.com/tutorials/629/sp ... when-where
ImageImageImage
B
71
S
22
G
249
Posts: 3,764
Reputation: 138,579


Return to How do I....?

Who is online

Users browsing this forum: DiegoSanudoDT, R0J0hound and 9 guests