en:spriteplace [BASIC 256 - Language Documentation]

# BASIC 256 - Language Documentation

en:spriteplace

## Spriteplace (Statement)

### Format

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

### Description

Place the center of a sprite at a specific location on the screen (x,y). Like Imgload sprite positioning is relative to the center of the sprite and not the top left corner as with most other graphical statements.
Optionally the sprite may be rotated or scaled by defining optional the rotate_expr and scale_expr parameters. The degree rotate_expr is measured in radians.

### Example

See Spritedim

### 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 | Added rotate and scale

en/spriteplace.txt · Last modified: 2014/02/09 14:42 by admin