eastern-flames/eastern flames/scripts/instance_create/instance_create.gml

9 lines
257 B
Plaintext

///@function instance_create(x, y, object, [layer, depth]);
function instance_create(x, y, object, layer_="instances", depth_) {
var chump = instance_create_layer(x, y, layer_, object);
if(depth_ != undefined){
chump.depth = depth_;
}
return chump;
}