Skip to content

Draw_set_halign

hpgDesigns edited this page Aug 8, 2021 · 1 revision

NOTOC

Notation

Description

Set the horizontal alignment for drawing text. halign is the horizontal alignment.

Parameters

  • halign: Horizontal alignment to set. Valid values are:
    • fa_left (default)
    • fa_center
    • fa_right

Return Values

none

Example Call

//draws a horizontally centered text at mouse position
draw_set_halign(fa_center);
draw_text(mouse_x,mouse_y,"This is a centered string");

This is number 1

Clone this wiki locally