SPRITE_SHOW

SPRITE_SHOW N

MAKES VISIBLE THE SPRITE NUMBER N

  • Type: Command
  • Parameter: 1
  • Group: SPRITE

ACTION

The command SPRITE_SHOW N makes visible the SPRITE designated by its number N.

Remark : the normal state of a SPRITE at creation is to be visible.

SYNTAX: SPRITE_SHOW N

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

USE

  • The command is used to make visible a SPRITE which was invisible.

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 SPRITE number N does not exist.

EXAMPLE

rem create a 2D world number 1

scene2d 1

rem load a background picture

file_load 1,"city.bmp"

rem create a SPRITE number 1

sprite 1

rem load a picture to the SPRITE

sprite_file_load 1,"alien.bmp"

rem wait for 1 seconde

wait 1000

rem make it invisible

sprite_hide 1

rem wait for 1 seconde

wait 1000

rem make it visible

sprite_show 1

SEE ALSO

SPRITE_HIDE

SPRITE_HIDE_ALL

SPRITE_SHOW_ALL