get_marker_x

Returns the X position of a specified stage marker. Will return -1 if the marker is not found.

ArgumentTypeDescription
index:realThe index of the marker to find.

Example, called from a stage’s article1_update.gml:

//This will destroy the article as soon as it goes to the left of a specific marker.
if ( x <= get_marker_x( 6 ) ) {
instance_destroy();
}