Methods
-
add_text_input(x, y, initial_text, size, colour)
-
Creates a new text object and adds it to the game.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description xNumber the x coordinate to display the text at
yNumber the y coordinate to display the text at
initial_textString the text to display
sizeNumber the font size to display the text with
colourthe colour to display the text with
Code Equivalent:
game.add.text(x, y, initial_text, fontSize: \`\sizepx\`, fill: colour) -
set_text(object, text_string)
-
Sets the text to display on the text object.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description objecttext object to set the text for
text_stringString text to display on the object
Code Equivalent:
variable_object.text = value_text;