TEXT keyword

Displays a string expression on screen (note: replaces the BASIC-like PRINT command).

Syntax

TEXT string, (posX, posY), "fontname", fontsize, "effect", effectvalue

Parameters

  • string: a string expression to display (required);
  • posX: integer of horizontal position of text;
  • posY: integer of vertical position of text;
  • fontname: font to use;
  • fontsize: font size as integer;
  • effect: possible effect to add:
    • "type" adds a typewriter effect to display each character one at a time;
    • "fadein" make the text to slowly appear;
  • effectvalue: integer of effect's value [set delay in ms between each char with "type", set fade-in delay with "fadein"]

Examples

TEXT "This is my text"
TEXT "This is my text", (200, 100)
TEXT "This is my text", (200, 100), "font1"
TEXT "This is my text", (200, 100), "font1", 50
TEXT "This is my text", (200, 100), "font1", 50, "type"
TEXT "This is my text", (200, 100), "font1", 50, "type", 70
TEXT "This is my text", (200, 100), "font1", 50, "fadein", 2000

Go back to list of Keywords.