This is a quick question, so I'm just asking for font_add_sprite, could someone show me the letter order of the sub-images?
Thanks, Hellfire-911
Edited by hellfire911, 09 July 2007 - 02:52 AM.
Posted 09 July 2007 - 02:51 AM
Edited by hellfire911, 09 July 2007 - 02:52 AM.
Posted 09 July 2007 - 04:14 AM
font_add_sprite(spr,first,prop,sep) Adds a new font and returns its index. The font is created from a sprite. The sprite should contain a subimage for each character. first indicate the index of the first character in the sprite. For example, use ord('0') if your sprite only contains the digits.
"The sprite should contain a subimage for each character. first indicates the ascii code of the first character in the sprite."
{
font_index=font_add_sprite(sprite0,48,0,0);
draw_set_font(font_index);
draw_text(10,50,keyboard_lastchar);
draw_set_font(-1);
draw_text(10,100,string(ord(keyboard_lastchar)));
}Posted 15 August 2007 - 05:47 AM
0 members, 0 guests, 0 anonymous users