First defined in: FKiSS2.1
The moverandy action causes target to move by a random
vertical distance in the range min to max relative to its
current position. The horizontal position of target is not
affected. Positive values move target down while negative values
move target up.
FKiSS movement is restricted to the play field unless
restrictx or
restricty is used to alter
the limits for an object.
|
target
In FKiSS2.1 to FKiSS3, target must be an object number.
In FKiSS4, target may be an object number or a variable representing an object number.
min
In FKiSS2.1, min must be a number.
In FKiSS3, min may be number or a variable.
max
In FKiSS2.1, max must be a number.
In FKiSS3, max may be number or a variable.
Example:
;@ moverandy(#5, 5, 105) ; Move object #5 down anywhere between 5 and 105 pixels.
;@ moverandy(#5, -5, -105) ; Move object #5 up anywhere between 5 and 105 pixels.
;@ moverandy(VarObj, Low, High) ; Move object identified by variable VarObj vertically in the range from Low to High.