draw_get_valign

This function is used to get the text alignment setting along the vertical axis, and will return one of the constants listed below.

 

Syntax:

draw_get_valign();

 

Returns:

Constant

Constant Alignment
fa_top fa_top example
fa_middle fa_middle example
fa_bottom fa_bottom example

 

Example:

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.