SpriteFont (v0.99.5RC) - new update, small bugfixes

Post and try out addons that are currently in development.

Post » Tue Oct 20, 2009 2:12 pm

One more question I seem to have forgotten if I asked: Was it in any way possibly to color segments of a phrase somehow. Like important words? This was possible with Text Blitter in MMF and I loved it greatly!

Though that plugin had self-contained images, and what I did was offset the source ascii image to an ascii table with differently colored letters. It re-rendered all letters each tick, which I think SpriteFont stopped doing? But then it didn't create "sprites" for each letter.
B
5
S
2
G
3
Posts: 234
Reputation: 1,818

Post » Tue Oct 20, 2009 6:43 pm

you could do "for each word"
---- if 'current word' is equal to "important"
---------set lettersprite tint to red
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Tue Oct 20, 2009 6:55 pm

here's an example of two things you can do:
[url:8b8a7dvz]http://dl.getdropbox.com/u/1013446/konjak.cap[/url:8b8a7dvz]

once you get the spritefont plugin to pick them, you can just do anything to the sprites you want
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Tue Oct 20, 2009 7:46 pm

Ah, I see... I must've done it wrong somewhere then... :o

Thanks a bunch!
B
5
S
2
G
3
Posts: 234
Reputation: 1,818

Post » Tue Oct 20, 2009 10:26 pm

yeah that was fair useful, I think I understand it better now!
B
134
S
65
G
16
Posts: 1,766
Reputation: 19,190

Post » Wed Oct 21, 2009 10:04 pm

Is it possible to ask the SpriteFont if it's between letter number X and letter number Y, and change the letters inbetween those numbers to a color or whatever, because whatever I seem to try either colors all the text or even crashes the game (older version of SpriteFont though, still, and could be me misusing some expressions).

Failing that, can you make it start recoloring text by first seeing a symbol like [ which isn't in the graphical alphabet sprite (which I assume would make a zero width sprite?) and then maybe ] to make it change back?

EDIT: What I tried last that just colors all text is "For Each letter" ---> "SpriteFont.LetterPositionInPhrase Lower or Equal to 50" ---> "Set Font sprite opacity to 50", then just switch it back when it's over 50...
B
5
S
2
G
3
Posts: 234
Reputation: 1,818

Post » Wed Oct 21, 2009 11:02 pm

[url:3a2bgj07]http://dl.getdropbox.com/u/1013446/s/konjak2.cap[/url:3a2bgj07]
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Thu Oct 22, 2009 12:29 am

It just won't work for me, it keeps making all letters change color. Your .CAP works so it's not the plugin version. It's really frustrating.

Appreciate the help, though!
B
5
S
2
G
3
Posts: 234
Reputation: 1,818

Post » Thu Oct 22, 2009 12:40 am

Okay, I figured out I had been negligent and written something wrong at one place, but when I corrected it the game just crashes when it comes time to write the text.

I can't be given a break!
B
5
S
2
G
3
Posts: 234
Reputation: 1,818

Post » Sun Oct 25, 2009 5:06 pm

I don't know if this has already been asked, but is there a quick way to import fontsets from a single image? Or generate a set based on a windows font.
B
2
S
1
G
3
Posts: 71
Reputation: 1,142

PreviousNext

Return to Work-in-progress addons

Who is online

Users browsing this forum: No registered users and 0 guests