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