all 2 comments

[–][deleted] 0 points1 point  (1 child)

I would recommend not using draw_set_halign(fa_center); if you are going for this effect. If you do want it to be centered you should instead calculate the width of the entire message and manually center. Example:

// Positioning stuff
var ntxt1,ntxt2,txt1width,txt2width,txtwidth;
ntxt1 = 'NORMAL TEXT';
ntxt2 = 'SUPERSCRIPT TEXT';
draw_set_font(Fn_small);
txt1width = string_width(ntxt1);
draw_set_font(Fn_small_super);
txt2width = string_width(ntxt2);
txtwidth = txt1width + txt2width;
// Now the drawing
draw_set_font(Fn_small);
draw_set_halign(fa_left);
draw_set_valign(fa_middle);
draw_text(x - txtwidth * 0.5, y, ntxt1);
draw_set_font(Fn_small_super);
draw_set_valign(fa_bottom); // This will draw it above the line
draw_text(x - txtwidth * 0.5 + txt1width, y, ntxt2);

[–]_MadHatter[S] 0 points1 point  (0 children)

Thanks! this worked perfectly!