Top | Up (Sprites) | < Previous (PAGE NAME) | Next (PAGE NAME) >
Controls which part of the screen sprites are visible in. Sprites that go outside this area will be cut off.
SPCLIP [start_x%, start_y%, end_x%, end_y%]
If no arguments are passed, the sprite display area covers the entire screen.
More precisely, the visible area starts at ( start_x%, start_y% ) and ends at ( start_x%-1, start_y%-1 ) If the end is less than the start, they are swapped.
SPCLIP 200,0, 400-1,240-1
'only sprites on the right half of the screen will be visible
FOR I=0 TO 99
SPSET I,0
SPOFS I,RND(400),RND(240)
NEXT
(Someone get a screenshot of this maybe)
SPCLIP with 0 arguments now works in XSCREEN 4 1
1 SmileBoom, “Bug Fixes in Ver. 3.3.0 (April 26, 2016)” http://smilebasic.com/debug/archive/
Top | Up (CATEGORY) | < Previous (PAGE NAME) | Next (PAGE NAME) >