Skip to content
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.

Latest commit

 

History

History
80 lines (66 loc) · 2.29 KB

SPCLIP.org

File metadata and controls

80 lines (66 loc) · 2.29 KB

Top | Up (Sprites) | < Previous (PAGE NAME) | Next (PAGE NAME) >

SPCLIP

Controls which part of the screen sprites are visible in. Sprites that go outside this area will be cut off.

Syntax

SPCLIP [start_x%, start_y%, end_x%, end_y%]

If no arguments are passed, the sprite display area covers the entire screen.

http://kland.smilebasicsource.com/i/negmf.png

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.

Examples

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)

Version Information

3.3.0

SPCLIP with 0 arguments now works in XSCREEN 4 1

See Also

References

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) >