Top | Up (Sprite) | < Previous (SPFUNC) | Next (SPCLIP) >
Gets and sets the graphic page that will be used when displaying sprites.
SPPAGE page%
Parameter | Description |
---|---|
page% | The graphic page to be used as the sprite sheet. Must be a number from 0 to 5. |
SPPAGE OUT page%
Output | Description |
---|---|
page% | The current graphic page used as the sprite sheet. This will be a number from 0 to 5. |
ACLS
SPPAGE 5 'This will use the background tile sheet as the sprite sheet.
SPSET 0,1
SPOFS 0,200,120
WAIT 60 'Wait a second
SPPAGE 3 'This will use the third graphic page. It's empty by default.
GPAGE 0,3 'Display page 0, edit page 3.
GLINE 16,0,31,15,#WHITE 'Draw a line onto the graphic page, also changing the appearance of the sprite defined before.
OUT variant added. 1
1 SmileBoom, “Additions/Changes in Ver. 3.2.0 (June 17, 2015)” http://smilebasic.com/en/debug/archive/