Home | Customize | Blog | Extras | Log In | Info
Manual | D&D icons | GML Parser | Archive | Iso City
Username: Password:  
About | Features | Directory | Banners | Contact

Designing Games with GameMaker
Designing Games with GameMaker

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.

Search Search


Alternative versions Alternative versions

You can also read this manual on one single long page (± 1.5 mb)

Also available in: Dutch French German

ZIP Download helpfile

Advertisement Advertisement

GameMaker Manual