Pixel-Composer/scripts/instance_create/instance_create.gml
2023-02-14 08:48:33 +07:00

9 lines
392 B
Plaintext

/// @description Creates an instance of a given object at a given position.
/// @param x The x position the object will be created at.
/// @param y The y position the object will be created at.
/// @param obj The object to create an instance of.
function instance_create(_x, _y, object) {
var myDepth = object_get_depth( object );
return instance_create_depth( _x, _y, myDepth, object );
}