GetXDir

Category: Objects / Movement
Since engine version: 4.6.5.0 CP

Description

Returns the horizontal speed of pObj.

Syntax

int GetXDir (object pObj, int iPrecision);

Parameters

pObj:
Object of which to retrieve the current speed. Can be 0 in local calls.
iPrecision:
Precision with which to retrieve the speed. Default value is 10.

Remark

The function will return the speed in pixels per frame multiplied with iPrecision. If no precision is specified, the ten-fold speed value will be returned!
See also: GetX, GetY, GetYDir, SetPosition, SetXDir, SetYDir
Cucaracha, Mai 2002