get_stage_data

Returns the size of the specified part of the stage.

ArgumentTypeDescription
index:realThe data to get

Indexes Reference

Example, called from update.gml:

// // keeps track of how long the player is offstage:
var stage_x = get_stage_data( SD_X_POS );
if (x < stage_x || x > room_width - stage_x){
offstage_timer++;
} else {
offstage_timer = 0;
}