draw_set_halign - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
NOTOC
Set the horizontal alignment for drawing text. halign is the horizontal alignment.
-
halign: Horizontal alignment to set. Valid values are:
- fa_left (default)
- fa_center
- fa_right
none
//draws a horizontally centered text at mouse position
draw_set_halign(fa_center);
draw_text(mouse_x,mouse_y,"This is a centered string");