SetXDir

Category: Objects / Movement
Since engine version: 1.0 OC

Description

Sets the horizontal speed of the object.

Syntax

bool SetXDir(int xdir, int precision);

Parameters

xdir:
Horizontal speed divided by precision.
precision:
[opt] Precision. Default 10 if not specified.
See also: GetXDir, GetYDir, SetR, SetRDir, SetSpeed, SetYDir
jwk, 2002-08