The "vngen_set_halign" Function
#
SyntaxArgument | Type | Description |
---|---|---|
id | real/string | The ID of the entity to set alignment (or keyword 'all' for all entities) |
type | integer/macro | Sets whether to set alignment for text or labels |
halign | constant | Sets font alignment to either fa_left , fa_center , or fa_right (default fa_left ) |
#
DescriptionSets the horizontal alignment of the specified text or label entity. It is also possible to permanently set alignment of all entities of either type by supplying the 'all' keyword in place of an ID. In this case, alignment will also apply to new entities created in the future.
See Macros & Keywords for a full list of available entity types. This script supports only the entity types vngen_type_text
and vngen_type_label
.
#
Examplenote
Note: VNgen alignment properties exist independently of GameMaker's draw_set_halign
property. Changing VNgen alignment will not affect GameMaker's alignment and vice versa.