SPRITE_HIDE N

REND INVISIBLE LE SPRITE NUMÉRO N



ACTION

La commande SPRITE_HIDE N rend invisible le SPRITE désigné par son numéro N.

Remarque : l'état normal d'un SPRITE à la création est d'être visible.


SYNTAXE : SPRITE_HIDE N


UTILISATION


ERREUR


EXEMPLE

' créer un monde 2D numéro 1

scene2d 1

' charger une image de fond

file_load 1,"ville.bmp"

' créer un SPRITE numéro 1

sprite 1

' charger une image dans le SPRITE

sprite_file_load 1,"envahisseur.bmp"

' attendre 1 seconde

wait 1000

' le rendre invisible

sprite_hide 1

' attendre 1 seconde

wait 1000

' le rendre visible

sprite_show 1


EN RAPPORT

SPRITE_SHOW

SPRITE_SHOW_ALL

SPRITE_HIDE_ALL


Content created by Jack. Updated March 07, 2025