GetXDir

Category: Objects / Movement
Since engine version: 1.0 OC

Description

Returns the horizontal speed of the calling object.

Syntax

int GetXDir(int precision);

Parameter

precision:
Precision with which to retrieve the speed. Default value is 10.

Remark

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