instance_activate_region() (Game Maker)

Instance_activate_region

(Game Maker 6.1, 7)

instance_activate_region - activate all instances inside or outside of a region

Description

instance_activate_region ( left, top, width, height, inside )

  • left - left corner of region, as a number
  • top - top corner of region, as a number
  • width - width of region, as a number
  • height - height of region, as a number
  • inside - true or false

instance_activate_region() activates all instances inside or outside a region. If inside is set to true, it will activate instances contained in the region. If it is set to false, it will activate all instances outside the region.

Examples

Example of Use

instance_activate_region(0,0,100,100,true);

In this example, instance_activate_region() will activate all instances inside a 100x100 region located at the top, left corner of the room.

See Also

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution 2.5 License.