spriteVisible

Gets or sets the visibility status of a sprite.

With a single argument, which must be a sprite, this function returns a boolean indicating wether the corresponding sprite is visible or not.

With two arguments, a sprite and a boolean, this function sets the visibility status of the corresponding sprite to the given boolean. Sprites are initially invisible. Invisible sprites never collide with other sprites.

Usage

Make a sprite visible:

    spriteVisible(sprite, TRUE);

Make a sprite invisible:

    spriteVisible(sprite, FALSE);

Check if a sprite is visible:

    if spriteVisible(sprite) then
      :
    endif;