Name
MoveLayer -- move layer from a to b (V1.9)
Synopsis
MoveLayer(id, xa, ya, xb, yb[, table])
Function
This function moves (scrolls) the layer specified by id softly from the location specified by xa,ya to the location specified by xb,yb. You can specify the special constant #USELAYERPOSITION as any of the coordinates. Hollywood will use the current position of the layer then.

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.

You need to enable layers before you can use this function. See Layers introduction for details.

Inputs
id
id or name of the layer to use
xa
source x position
ya
source y position
xb
destination x position
yb
destination y position
table
optional: further configuration for this move
Example
MoveLayer(5,#LEFTOUT,#CENTER,#RIGHTOUT,#CENTER)
Moves layer 5 from the outside left to the outside right of the display and centers it vertically.


MoveLayer(4, #USELAYERPOSITION, #USELAYERPOSITION, #LEFTOUT, #CENTER)
Moves layer 4 from its current position out of the screen.

Show TOC