YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
21 stars 8 forks source link

In-Game: [HTML5] instance_create_depth() optional struct cannot set image_index for that new instance, always uses 0 #6184

Closed gm-bug-reporter[bot] closed 3 months ago

gm-bug-reporter[bot] commented 3 months ago

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

Toad06 commented 3 months ago

Could this be already fixed by https://github.com/YoYoGames/GameMaker-Bugs/issues/5968?

stuckie commented 3 months ago

As above, this should be fixed for June. Duplicate of #5968