SPRITE_TEXT

SPRITE_TEXT N,T

THE SPRITE NUMBER N DISPLAYS THE TEXT T

  • Type: Command
  • Parameters: 2
  • Group: SPRITE

ACTION

The command SPRITE_TEXT N,T displays the text T in he SPRITE designated by its number N.

The text is displayed with font, size, color and style defined for its SCENE2D.

SYNTAX: SPRITE_TEXT N,T

  • N = SPRITE number (integer or real). Must be greater than 0 and less than or equal to the allowed maximum number of SPRITE objects.
  • T = text (string).

USE

  • The command SPRITE_TEXT is used to handle a text as a SPRITE.

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of SPRITE objects.
  • If number N is not greater than 0.
  • If the SPRITE number N does not exist.
  • If text T is not a correct string expression.

EXAMPLE

dim i%

scene2D 1

width 0,800:height 0,800

width 1,600:height 1,600

color 1,200,50,50

sprite 10

font_size 1,20

font_color 1,255,0,0

font_bold 1

sprite_text 10,"Panoramic"

SEE ALSO

SPRITE