Action: Letobjectx(variable, target)

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

letobjectx(variable, target)

First defined in: FKiSS3
The letobjectx action sets the value of variable to the current horizontal position of target for the current set (page).

variable

variable must be a variable name.

target

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

Example:

;@ letobjectx(X, #5)     ; Put the current horizontal position of object #5 into variable X.
;@ letobjectx(X, VarObj) ; Put the current horizontal position of the object identified by variable VarObj into variable X.