When x equals:
0 RSPPOS returns the current X position of the specified
sprite.
1 RSPPOS returns the current Y position of the specified
sprite.
2 RSPPOS returns the speed (0-15) of the specified sprite.
EXAMPLE:
10 SPRITE 1,1,2
20 MOVSPR 1,45#13
30 PRINT RSPPOS(1,0);RSPPOS(1,1);RSPPOS(1,2)
This example returns the current X and Y sprite coordinates and
the speed (13).
RSPRITE
Return sprite characteristics
RSPRITE (sprite number,characteristic)
RSPRITE returns sprite characteristics that were specified in the
SPRITE command. Sprite number specifies the sprite you are
checking and the characteristic specifies the sprite's display
qualities as follows:
Characteristic
0
1
2
3
4
5
EXAMPLE:
10 FOR I = 0 TO 5
20 PRINT RSPRITE (1,1)
30 NEXT
RSPRITE returns
these values:
Enabled(1) / disabled(O).
Sprite color (1-16).
Sprites are displayed in
front of (0) or behind (1 )
objects on the screen.
Expand in X direction
Expand in Y direction
Multicolor
This example prints all 6
characteristics of sprite 1.
yes =1, no=0.
yes =1, no=0.
y e s = 1 ,n o = 0 .
18-17