/// @param number
/// @param x_percent
/// @param y_percent
/// @param text

var _id = argument[0];
var _xx = floor(argument[1] / 100 * room_width);
var _yy = floor(argument[2] / 100 * room_height);
var _text = argument[3];

with (instance_create_layer(_xx, _yy, "Menu", obj_level_select)) {
	number = _id;
	text = _text;
}