Author Topic: Changeable Text Sprites?  (Read 4149 times)

0 Members and 1 Guest are viewing this topic.

Offline Flockshot

  • Street Thug
  • *
  • Posts: 29
    • View Profile
Changeable Text Sprites?
« on: September 21, 2014, 04:12:17 am »
I would like to know that is there a way to use text for sprites.
Not talking about textdraw but the sprites itself.

Like if i wanted to show how much fuel is left and give it percentage then i would have to make 100 sprites 1 for all numbers.
Is there a way that we can only use one sprite and we can write and show text or numbers with it.

I dont want to use the textdraw as they are very small in size.

Offline NE.Restricted

  • Wiseguy
  • **
  • Posts: 97
    • View Profile
Re: Changeable Text Sprites?
« Reply #1 on: September 21, 2014, 01:54:03 pm »
I would like to know that is there a way to use text for sprites.
Not talking about textdraw but the sprites itself.

Like if i wanted to show how much fuel is left and give it percentage then i would have to make 100 sprites 1 for all numbers.
Is there a way that we can only use one sprite and we can write and show text or numbers with it.

I dont want to use the textdraw as they are very small in size.
Make a font system which contains:
Numbers 0-9
Text A-Z a-z
Symbols that you wish
I am NE.CrystalBlue!!!
Quote
i cant able to understand

Offline Flockshot

  • Street Thug
  • *
  • Posts: 29
    • View Profile
Re: Changeable Text Sprites?
« Reply #2 on: September 21, 2014, 03:25:07 pm »
In only one image file like this



or different image files for different numbers,text

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: Changeable Text Sprites?
« Reply #3 on: September 21, 2014, 06:15:20 pm »
You'd need different images, since you can't show parts of a sprite.

Offline NE.Restricted

  • Wiseguy
  • **
  • Posts: 97
    • View Profile
Re: Changeable Text Sprites?
« Reply #4 on: September 23, 2014, 08:52:36 am »
You'd need different images, since you can't show parts of a sprite.
Ye, this example as format (letter):(file name)
a:font_a.png
b:font_b.png
...
« Last Edit: September 23, 2014, 10:09:36 am by NE.Restricted »
I am NE.CrystalBlue!!!
Quote
i cant able to understand