Get instance x

This function will get the x value (horizontal) of the specified instance, and is used to reference objects you usually don't have access to.

Syntax
get_instance_x( instance_id );

Returns
type (descriptive name)

Basic
// destroys the article when it’s within Clairen’s plasma field: with (asset_get( "plasma_field_obj" )) { with (other.id) { if (point_distance( x + 10 * spr_dir, y,            get_instance_x( other ), get_instance_y( other ) ) < 180) {            instance_destroy; }      } }