Exit

Category: Objects / Position
Since engine version: 1.0 OC

Description

Moves an object from its container. Optionally, sets its exit velocity.

Syntax

bool Exit(int x, int y, int iR, int xdir, int ydir, int rdir);

Parameters

x:
[opt] Offset of the X exit position.
y:
[opt] Offset of the Y exit position.
iR:
[opt] Object rotation on exit in degrees.
xdir:
[opt] Horizontal exit velocity. This is the actual speed value (with no precision multiplication).
ydir:
[opt] Vertical exit velocity. This is the actual speed value (with no precision multiplication).
rdir:
[opt] Rotational speed of the exiting object.

Example

Contents()->Exit(0,-20, Random(360), 0,-15, Random(11)-5);
Moves the first contained object from the calling object, rotates it randomly and throws it upwards.
See also: Enter
Sven2, 2001-11
matthes, 2004-10