Closed gm-bug-reporter[bot] closed 3 months ago
setting image_index with instance_create_depth doen't work on html5. It seems image_index become set 0 after setting the variables with structure.
ex) instance_create_depth(0,0,0,obj_test,{image_index: 2});
doesn't work and
var _inst = instance_create_depth(0,0,0,obj_test); _inst.image_index = 2;
works.
instance_create_depth(0,0,0,obj_test,{image_index: 2});
IDE v2024.4.1.152 Runtime v2024.4.1.201
Windows 10.0.19045.0
HTML5
822cae31-bca2-449e-9232-fcb19d121da1
Could this be already fixed by https://github.com/YoYoGames/GameMaker-Bugs/issues/5968?
As above, this should be fixed for June. Duplicate of #5968
Description
setting image_index with instance_create_depth doen't work on html5. It seems image_index become set 0 after setting the variables with structure.
ex) instance_create_depth(0,0,0,obj_test,{image_index: 2});
doesn't work and
var _inst = instance_create_depth(0,0,0,obj_test); _inst.image_index = 2;
works.
Steps To Reproduce
instance_create_depth(0,0,0,obj_test,{image_index: 2});
Which version of GameMaker are you reporting this issue for?
IDE v2024.4.1.152 Runtime v2024.4.1.201
Which operating system(s) are you seeing the problem on?
Windows 10.0.19045.0
Which platform(s) are you seeing the problem on?
HTML5
822cae31-bca2-449e-9232-fcb19d121da1