User Tools

Site Tools


en:spriteplace

Spriteplace (Statement)

Format

spriteplace sprite_number, x_position, y_position
spriteplace ( sprite_number, x_position, y_position )
spriteplace sprite_number, x_position, y_position, scale_expression
spriteplace ( sprite_number, x_position, y_position, scale_expression )
spriteplace sprite_number, x_position, y_position, scale_expression, rotate_expression
spriteplace ( sprite_number, x_position, y_position, scale_expression, rotate_expression )

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_expression and scale_expression parameters. The degree rotate_expression is measured in radians.

Example

See Spritedim

See Also

History

0.9.6nNew To Version
0.9.9.15Added rotate and scale
en/spriteplace.txt · Last modified: 2020/02/28 10:46 (external edit)