SpriteFont Color

Get help using Construct 2

Post » Wed May 14, 2014 6:48 am

Hey guys,

I'm really surprised I didnt find a thread talking about coloring SpriteFonts.
Isn't there any possibility/plugin to color a SpriteFont during runtime?

It can't be a solution to have serveral different coloured spritefonts just to change color.

Thanks in advance,

Vuuv
B
14
S
3
G
1
Posts: 255
Reputation: 2,027

Post » Wed May 14, 2014 8:07 am

you could use the set colour effect
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,882

Post » Wed May 14, 2014 8:23 am

quick example
You do not have the required permissions to view the files attached to this post.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,882

Post » Wed May 14, 2014 8:33 am

Wouldnt this affect the performance in a bad way?
B
14
S
3
G
1
Posts: 255
Reputation: 2,027

Post » Fri May 16, 2014 10:45 am

I tried to change the colour with the effect and it works. But fps go down for 10... :(

(on my phone its even a 20 fps drop)
B
14
S
3
G
1
Posts: 255
Reputation: 2,027

Post » Fri May 16, 2014 12:12 pm

I suggest you take that SpriteFont file to your favorite image editor and set it to all the different colors you wish to use, to get as many SpriteFont files as colors you want, then add them all to the project, each one with the name of the color. (As you can't add animations to SpriteFonts unfortunately, which would make things easier).
That way you won't have to use effects and impact your game performances. Only the memory used.
B
17
S
3
G
3
Posts: 89
Reputation: 2,825

Post » Fri May 16, 2014 2:57 pm

SpriteFont is SPRITE first font second. They are at their core a Sprite. When you need the font in another style you need a Sprite to match.

Do a forum search for
GiveYourFontsMono
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,028

Post » Fri May 16, 2014 4:55 pm

I already use GiveYourFontsMono. I just wanted to avoid Telyko's solution... thought maybe there would be a a beautiful solution for this problem.
B
14
S
3
G
1
Posts: 255
Reputation: 2,027

Post » Sat May 17, 2014 10:55 am

Could try using the tint/change colour effects, and then pasting the resulting image to a PASTER object. This makes it so the effect is only applied for a single tick and the result is saved on a PASTER object.
:-)
B
18
S
2
G
1
Posts: 36
Reputation: 878

Post » Mon Aug 17, 2015 7:42 pm

Sorry for bringing this up, but I wanted to ask... is there a reason we can't simply add in another sprite sheet or frame to the SpriteFont to use in order to change colour?
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
80
S
12
G
7
Posts: 965
Reputation: 10,750


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, kellehk, R0J0hound, tarek2 and 35 guests