get_marker_y

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

ArgumentTypeDescription
index:realThe index of the stage marker to find.

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

//This code will destroy the article as soon as it goes below the specified marker.
if ( y >= get_marker_y( 6 ) ) {
instance_destroy();
}