GenText


text = GenText(msg$, font, x, y, maxWidth, align)

text

This function returns a new Game Engine text object.

msg$

The text message to be displayed. Text can be changed at any time.

font

The Game Engine font object to be used to display the text. A font is just a special kind of tileset.

x

The x coordinate to position the text.

y

The y coordinate to position the text.

align

This parameter sets how the text will be aligned relative to the x and y coordinates.

include "Game Engine Constants.inc"

text = GenText("Hello World", font, 100, 100, Align_Center)

The Game Engine Constants.inc include file contains useful constants. You should edit it and look it over. It is in the global include folder which can be included in any Basic program.

' Text Alignment
Const Align_Left = -1
Const Align_Center = 0
Const Align_Right = 1


Game Engine Overview







Become a Patron