en:spritemove [BASIC 256 - Language Documentation]

# BASIC 256 - Language Documentation

en:spritemove

## Spritemove (Statement)

### Format

spritemove sprite_number, x_expr, y_expr
spritemove ( sprite_number, x_expr, y_expr )
spritemove sprite_number, x_expr, y_expr, scale_expr
spritemove ( sprite_number, x_expr, y_expr, scale_expr )
spritemove sprite_number, x_expr, y_expr, scale_expr, rotate_expr
spritemove ( sprite_number, x_expr, y_expr, scale_expr, rotate_expr )

### Description

Move a sprite from its current position by the specified number of pixels. Motion will be limited to the current screen. Optionally the sprite may be rotated or scaled by defining optional the rrotate_expr and scale_expr parameters. The degree rotate_expr is measured in radians. Rotation and scaling are relative to the previous state of the sprite.

### See Also

Spritecollide, Spritedim, Spriteh, Spritehide, Spriteload, Spritemove, Spritepoly Spriteplace, Spriteshow, Spriteslice, Spriter, Sprites, Spritev, Spritew, Spritex, Spritey

### History

0.9.6n | New To Version
0.9.9.15 | Rotate and scale added

en/spritemove.txt · Last modified: 2014/02/09 14:36 by admin