EasyManua.ls Logo

Commodore 128 - Page 345

Commodore 128
448 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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 RSPRITE returns
these values:
0 Enabled(1) / disabled(O).
1 Sprite color (1-16).
2 Sprites are displayed in
front of (0) or behind (1 )
objects on the screen.
3 Expand in X direction yes =1, no=0.
4 Expand in Y direction yes =1, no=0.
5 Multicolor yes=1,no=0.
EXAMPLE:
10 FOR I = 0 TO 5 This example prints all 6
20 PRINT RSPRITE (1,1) characteristics of sprite 1.
30 NEXT
18-17

Table of Contents

Other manuals for Commodore 128

Related product manuals