Retro Rocket OS
Loading...
Searching...
No Matches
SPRITEWIDTH Function
SPRITEWIDTH(sprite-handle)
Returns the
width
of a sprite in pixels.
Examples
w = SPRITEWIDTH(player_sprite)
PRINT "Width: "; w
IF SPRITEWIDTH(enemy_sprite) > 100 THEN
PRINT "Large enemy"
ENDIF
See also:
SPRITEHEIGHT
Retro Rocket OS Documentation
BASIC Language Reference
Built-In Functions
Integer Functions
Generated by
1.14.0