The normal.motion command switches an object's movement mode to 'normal'.
Object oA is set to 'normal' motion (movement) mode. If already in normal mode, this command has no effect.
While in normal motion mode, an object will not move until it is given a direction via the set.dir command. It will continue moving until it reaches an obstacle, the edge of the screen, a new direction via command, or is stopped using the stop.motion command.
The normal.motion command mode does NOT automatically switch ego to player control mode. The start.motion command also sets an object to 'normal' movement mode, but will also switch to player control mode if the object is ego.
AGI does not check that object number oA is a valid screen object. If it is not, this command will overwrite other data on the memory heap, which may cause unexpected results, including possibly crashing AGI.
wander(o1); [ object wanders aimlessly ... normal.motion(o1); [ normal motion restored
|Required Interpreter Version:||Available in all AGI versions.|
|Byte-Code Value:||85 (0x55 hex)|