Action: Moveto(target, X, Y)

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

moveto(target, X, Y)

First defined in: FKiSS1
The moveto action causes target to move to absolute play field position <X, Y>. Negative values are allowed and position target partially or wholly outside the play field.
FKiSS movement is restricted to the play field unless restrictx or
restricty is used to alter the limits for an object.

target

In FKiSS2 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:

;@ moveto(#5, 10, 15)   ; Move object #5 to position 10 pixels from left edge of play field and 15 pixel from top edge.
;@ moveto(VarObj, X, Y) ; Move object identified by variable VarObj to position X, Y.