Action: Move(target, X, Y)

Related Actions: moveto, movebyx, movebyy, movetorand, moverandx, moverandy, restrictx, restricty, letinitx, letinity, letobjectx, letobjecty
See also: FKiSS, Events, Actions

move(target, X, Y)

First defined in: FKiSS1
The move action causes target to move X pixels horizontally and Y pixels vertically relative to its current position. Positive values move to the right and down while negative values move to the left and up.
FKiSS movement is restricted to the play field unless restrictx or
restricty is used to alter the limits for an object.

target

In FKiSS1 to FKiSS3, target must be an object number.
In FKiSS4, target may be an object number or a variable representing an object number.

X

In FKiSS1 to FKiSS2.1, X must be a number.
In FKiSS3, X may be number or a variable.

Y

In FKiSS1 to FKiSS2.1, Y must be a number.
In FKiSS3, Y may be number or a variable.

Example:

;@ move(#5, 10, -25)  ; Move object #5 to the right 10 pixels and up 25 pixels.
;@ move(#5, -10, 25)  ; Move object #5 to the left 10 pixels and down 25 pixels.
;@ move(VarObj, X, Y) ; Move object identified by variable VarObj horizontally by X pixels and vertically by Y pixels.