Ignore.objs

From AGI Wiki
Jump to navigationJump to search

The ignore.objs command allows a screen object to move through other objects.

Syntax

ignore.objs(obj oA);

Remarks

By default when initialized, screen objects are not allowed to occupy the same position as other objects. AGI uses a collision detection feature to manage this. The ignore.objs command allows a screen object to ignore and pass onto and through other objects.

When screen object oA is ignoring other objects, the behavior is reciprocal, meaning that all other objects also ignore object oA.

Possible Errors

AGI does not check that object number oA is a valid object. If it is not, this command will overwrite other data on the memory heap, which may cause unexpected results, including possibly crashing AGI.

Example

Code:
#define o3 ghost
ignore.objs(ghost);   [ the ghost can move through other objects
...
observe.objs(ghost);  [ now this ghost cannot move through other objects

Technical Information

Required Interpreter Version: Available in all AGI versions.
Byte-Code Value: 67 (0x43 hex)

See Also

ignore.blocks
ignore.horizon
observe.objs