Name
MoveSprite -- move a sprite from a to b (V2.0)
Synopsis
MoveSprite(id, xa, ya, xb, yb[, table])
Function
This function moves (scrolls) the sprite specified by id softly from the location specified by xa,ya to the location specified by xb,yb.

Further configuration options are possible using the optional argument table. You can specify the move speed, special effect, and whether or not the move shall be asynchronous. See MoveBrush for more information on the optional table argument. Besides the table elements mentioned in the MoveBrush() documentation, MoveSprite() accepts one additional table element named AnimSpeed: The anim speed value defines after how many draws the frame number should be increased; therefore a higher number means a lower playback speed of the animation.

Inputs
id
identifier of the sprite to use
xa
source x position
ya
source y position
xb
destination x position
yb
destination y position
table
optional: further configuration options
Example
MoveSprite(1, 100, 50, 0, 50, {Speed = 5, AnimSpeed = 4})
Moves the sprite 1 from 100:50 to 0:50 with move speed 5 and anim playback speed 4.

Show TOC