Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: FONT Colours  (Read 5125 times)

0 Members and 1 Guest are viewing this topic.

MMR

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 349
  • http://mmrdeveloper.wordpress.com/
    • View Profile
    • TinyWME
FONT Colours
« on: February 15, 2004, 05:22:32 PM »

I was wondering if would be possible to implement some kind of "auto-colour" font. Something like the AGS fonts.
You have a white font, and you choose the color of that font by scripting.

e.g: actor.SetFont("fonts\arialb.font", blue);

or:  actor.SetFont("fonts\arialb.font", 0, 0, 255);
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re:FONT Colours
« Reply #1 on: February 15, 2004, 07:53:03 PM »

Well, everything's possible. But it believe it's fairly easy to re-color the font in some graphics editor, plus it allows you to use some other effects, such as gradients etc.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

McCoy

  • The cocido eater
  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 365
  • Spurrrrrrring
    • View Profile
    • Spur Games
Re:FONT Colours
« Reply #2 on: February 16, 2004, 06:50:07 PM »

Well yes, but I think it's a little nuisance to do that when you want to have different font colors for every speaking character on the same scene (most useful for letting the user know who's talking when your game doesn't have voices ;D), so you'll have to do like 5 versions of every font you're planning to use for talking (well, yes, it's usually just one kind of font...).  And it will be not only useful for that, but for special effects and all that (you know I like graphic tricks... sometimes just because of the very meant of them [art because of art? mhh... I think that's too much in this case :-X]). And I don't think gradients will be very common on very used fonts like talking fonts. Anyway something like the alpha color of a sprite will do nicely I think...  
Logged

Click here to sign my sig!

MMR

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 349
  • http://mmrdeveloper.wordpress.com/
    • View Profile
    • TinyWME
Re:FONT Colours
« Reply #3 on: February 16, 2004, 10:19:10 PM »

yep, that's what i expect to be implemented
Logged

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1456
  • Lamp dog!
    • View Profile
Re:FONT Colours
« Reply #4 on: February 16, 2004, 10:29:45 PM »

Count one more vote for this please. I would have used that feature in Dreams if it was possible (although at the current state I am using only 2 different colored fonts)
Logged
fl*p
 

Page created in 0.017 seconds with 19 queries.