This function is used to get the text alignment setting along the vertical axis, and will return one of the constants listed below.
draw_get_valign();
常量
常量 | Alignment |
---|---|
fa_top | |
fa_middle | |
fa_bottom |
if draw_get_valign() != fa_top
{
draw_set_valign(fa_top);
}
draw_text(100, 32, "Score: " + string(score));
The above code will check to see if the current text alignment is top-aligned, and if it's not then it will be set and then some text is drawn.