Creates a new instance of the specified object.
Argument | Type | Description |
---|---|---|
x | :real | The x position the object will be created at |
y | :real | The y position the object will be created at |
object | :string | The 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" );
}
}