ludum-dare-42/ld42/scripts/instance_create/instance_create.gml

12 lines
443 B
Plaintext
Raw Permalink Normal View History

2021-06-16 23:13:19 -07:00
/// @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(argument0, argument1, argument2) {
var myDepth = object_get_depth( argument2 );
return instance_create_depth( argument0, argument1, myDepth, argument2 );
}