3D_TEXT_CHANGE

3D_TEXT_CHANGE N,S

CHANGES THE TEXT DISPLAYED IN A 3D TEXT

  • Type: Command
  • Parameters: 2
  • Group: 3D Objects

ACTION

The command 3D_TEXT_CHANGE N,S changes the text which is displayed by the 3D object designated by its number N.

The new text S is a string expression.

remark: The 3D object is a 3D_TEXT.

SYNTAX: 3D_TEXT_CHANGE N,S

  • N = 3D object number (3D_TEXT). Must be greater than 0 and less than or equal to the allowed maximum number of 3D objects.
  • S = string expression = new text to be displayed

USE

  • The command 3D_TEXT_CHANGE is used to display a changing text as a 3D object (a score per example)

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of 3D objects.
  • If number N is not greater than 0.
  • If 3D object number N does not exist.
  • IF number N is not the number of a 3D_TEXT.
  • If S is not a correct string expression.

EXAMPLE

rem create a 3D world

scene3d 1

rem create a 3D_TEXT with "100"

3d_text 1,"100"

rem move the camera

cam_position 2,2,15

rem move the point aimed by camera

point_position 2,-2,0

rem wait for 1 second

wait 1000

rem change the 3D text into "110"

3d_text_change 1,"110"

SEE ALSO

3D_TEXT