H
Homunculus
Guest
Posting here just for reference, I already reported the bug. Hopefully it can save some headache to others.
Runner version: 2.2.1.291
When exporting for HTML5,tTrying to access the built-in layer variable of a newly created instance right after instance_create_layer returns -1.
After one step, the layer can be accessed correctly.
Test case
Blank project, one room, two objects (object0 and object1):
The above outputs -1.
Runner version: 2.2.1.291
When exporting for HTML5,tTrying to access the built-in layer variable of a newly created instance right after instance_create_layer returns -1.
After one step, the layer can be accessed correctly.
Test case
Blank project, one room, two objects (object0 and object1):
Code:
//object0 create code
obj1 = instance_create_layer(x, y, layer, object1);
show_debug_message( string(obj1.layer) );