Vice City Multiplayer

VC:MP 0.4 (Beta) => Script Discussion => Topic started by: Flockshot on September 21, 2014, 04:12:17 am

Title: Changeable Text Sprites?
Post by: Flockshot 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.
Title: Re: Changeable Text Sprites?
Post by: NE.Restricted 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
Title: Re: Changeable Text Sprites?
Post by: Flockshot on September 21, 2014, 03:25:07 pm
In only one image file like this

(http://i1348.photobucket.com/albums/p730/msomaan/magicFont_zps320c081e.png) (http://s1348.photobucket.com/user/msomaan/media/magicFont_zps320c081e.png.html)

or different image files for different numbers,text
Title: Re: Changeable Text Sprites?
Post by: thijn on September 21, 2014, 06:15:20 pm
You'd need different images, since you can't show parts of a sprite.
Title: Re: Changeable Text Sprites?
Post by: NE.Restricted 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
...