GML Functions: Accessing Objects

The following functions will give you information about an object:


 * object_exists(ind) Returns whether an object with the given index exists.
 * object_get_name(ind) Returns the name of the object with the given index.
 * object_get_sprite(ind) Returns the index of the default sprite of the object with the given index.
 * object_get_solid(ind) Returns whether the object with the given index is default solid.
 * object_get_visible(ind) Returns whether the object with the given index is default visible.
 * object_get_depth(ind) Returns the depth of the object with the given index.
 * object_get_persistent(ind) Returns whether the object with the given index is persistent.
 * object_get_mask(ind) Returns the index of the mask of the object with the given index (-1 if is has no special mask).
 * object_get_parent(ind) Returns index of the parent object of object ind (a negative value is returned if it has no parent).
 * object_is_ancestor(ind1,ind2) Returns whether object ind2 is an ancestor of object ind1.