( x )

alphatext()


Create a text entity and return its handle
 

Syntax


entityhandle = alphatext( font_id$ , x , y , text$ , [hor_cen] , [ver_cen] , [x_scale#] , [y_scale#] , [x_kern] , [y_kern ] )
 

Parameters

 
Variable Description Default value
font_id$ A string used to select the font you wish your text to be in, the font's id$ is set in the AlphaGUI editor -
x The initial x coord of the text, this can be changed later using blitz's "PositionEntity" -
y The initial x coord of the text, this can be changed later using blitz's "PositionEntity" -
Text$ String containing the text you wish to write. Use a "|" for a new line.
hor_cen Center the text horizontally, 0 = false 1=true 0
ver_cen Center the text vertically, 0 = false 1=true 0
x_scale# Float value to scale the font horizontally, 2 = double size, 0.5 = half size 1.0
y_scale# Float value to scale the font vertically, 2 = double size, 0.5 = half size 1.0
x_kern adjust space between characters horizontally, 0 = font's default setting 0
y_kern adjust space between characters vertically, 0 = font's default setting 0

Returns

A normal blitz entity handle, so you can use RotateEntity, Positionentity, EntityColor etc., with it.

Use PositionEntity entity,x,y,0 to place text at 2d coords.

 

Back