instance_create

Creates a new instance of the specified object.

Available objects list→

ArgumentTypeDescription
x:realThe x position the object will be created at
y:realThe y position the object will be created at
object:stringThe name of the object to create an instance of
script_set:real(optional)
The script set the article uses. This argument is only used when spawning a stage article. Must be at least 0.

Example, called from attack_update.gml:

if (attack == AT_DSPECIAL) {
if (window == 2 && window_timer == 1){
instance_create( x, y, "obj_article1" );
}
}