SPRITE_HIDE_ALL

SPRITE_HIDE_ALL

MAKES INVISIBLE ALL THE SPRITES

  • Type: Command
  • Parameter: 0
  • Group: SPRITE

ACTION

The command SPRITE_HIDE_ALL makes invisible all the SPRITEs.

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

SYNTAX: SPRITE_HIDE_ALL

USE

  • The command is used to make invisible all the SPRITEs.

ERROR

  • None.

EXAMPLE

rem create a 2D world number 1

scene2d 1

rem load a background picture

file_load 1,"city.bmp"

rem create two SPRITEs

sprite 1:sprite 2

rem place SPRITE n° 2

sprite_x_position 2,100

rem load a picture to the SPRITEs

sprite_file_load 1,"alien.bmp"

sprite_file_load 2,"alien.bmp"

rem wait for 1 seconde

wait 1000

rem make them invisible

sprite_hide_all

rem wait for 1 seconde

wait 1000

rem make them visible

sprite_show_all

SEE ALSO

SPRITE_HIDE

SPRITE_SHOW

SPRITE_SHOW_ALL