CreateText
Description
Creates a text object for displaying text on the screen using a blank ID, returns the ID used. By default text is drawn at depth 9 above the default depth of sprites (10). Any sprites set to a depth of 8 or less will appear above the text. You can override this using SetTextDepth to set your own draw order.
Definition
integer CreateText( string )
uint32_t agk::CreateText( const char *string )
CreateText ( iTextIndex, string )
void agk::CreateText ( uint32_t iTextIndex, const char *string )
Parameters
- string - The initial string to use in this text object, can be an empty string.
- iTextIndex - The text ID to use to reference this text later (separate from image and sprite IDs, so there can be both a sprite 1 and a text 1)