DESIGNATES THE OBJECT NUMBER N (SCENE2D) AS RECEIVER OF SPRITES
ACTION
The command SPRITE_TARGET_IS N designates the object number N (SCENE2D) which will receive the next created SPRITES. This object becomes the "SPRITE target" object.
By default, the "SPRITE target" object is the first SCENE2D created.
SYNTAX:
SPRITE_TARGET_IS N
USE ERROR EXAMPLE
rem create a SCENE2D number 2
scene2d 1
rem create a SPRITE on this SCENE2D
sprite 1
rem create another SCENE2D number 2
scene2d 2
rem designate this second SCENE2D as the SPRITE target
sprite_target_is 2
rem create a SPRITE on this second SCENE2D
sprite 2
SPRITE_TARGET_IS
SPRITE_TARGET_IS N
SEE ALSO
SPRITE
NUMBER_SPRITE_TARGET