sequence_instance_override_object not working properly #9074
Labels
project
This issue has a sample project attached
runner-bug
In-game bugs with the "GameMaker Studio 2" runtimes
Description
Not sure what to make of this bug.
I have this object called oEnemy_Bee that I put in the room. In its create event it creates an instance of oDamage_enemy and a sequence. I try to override the objects in the sequence with the instance I created and the oEnemy_Bee itself.
So weird thing, when I tried to override the attack first and the bee second, I get an error that the sequence has no layer. In this situation I believe there is a second instance of oEnemy_Bee being created by the sequence, which has no assigned layer.
But if I change the order of the lines and override the Bee object first and the attack object second, it works. Don't know what's going on here but I'm scared.
Steps To Reproduce
attack1_damage = instance_create_layer(x, y, layer, oDamage_enemy);
attack1_seq = layer_sequence_create(layer, x, y, seqEnemy_Bee_attack1);
attack1_seqinst = layer_sequence_get_instance(attack1_seq);
sequence_instance_override_object(attack1_seqinst, oEnemy_Bee, id)
sequence_instance_override_object(attack1_seqinst, oDamage_enemy, attack1_damage);;```
this doesn't throw an error ^
Which version of GameMaker are you reporting this issue for?
IDE v2024.11.0.179 Runtime v2024.11.0.226
Which operating system(s) are you seeing the problem on?
Windows 10.0.22631.0
Which platform(s) are you seeing the problem on?
Windows
325ea0d1-5f29-43a2-8cfe-9362439cf25f
The text was updated successfully, but these errors were encountered: