depth = x*y; sprite_index = spr_wall;However, once the game starts, certain instances of that object (wall) did not change their sprite nor their depth. I also find it odd that it's only certain instances of the wall, not all of them.
I have never seen or heard of this happening to anyone and I cannot figure it out.
I had found out that the problem must lie with a specific object (inactive_controller) which is present in the room. For, when I remove the instance, the instances that previously did not execute Create, do as they should. The code of the inactive_controller is as follows:
CREATE EVENT
{
for (i = 1; i <= deactivated[0]; i += 1;)
{
deactivated[i].image_alpha = 0;
instance_deactivate_object(deactivated[i]);
}
image_alpha = 0;
}
ALARM0 EVENT
{
image_alpha += 0.04;
if (image_alpha > 1) then image_alpha = 1;
for (i = 1; i <= deactivated[0]; i += 1;)
{
deactivated[i].image_alpha = image_alpha;
}
if (image_alpha != 1) then alarm[0] = 5;
}
STEP EVENT
{
if (execute_string("return ball." +deactivated[deactivated[0]+1]))
{
event_perform(ev_alarm,0);
for (i = 1; i <= deactivated[0]; i += 1;)
{ instance_activate_object(deactivated[i]); }
}
}
INSTANCE CREATION CODE
{
deactivated[0] = 25;
deactivated[1] = (103596); deactivated[2] = (103597); deactivated[3] = (103598);
deactivated[4] = (103599); deactivated[5] = (103600); deactivated[6] = (103601);
deactivated[7] = (103602); deactivated[8] = (103603); deactivated[9] = (103604);
deactivated[10] = (103605); deactivated[11] = (103606); deactivated[12] = (103607);
deactivated[13] = (103608); deactivated[14] = (103609); deactivated[15] = (103610);
deactivated[16] = (103611); deactivated[17] = (103612); deactivated[18] = (103613);
deactivated[19] = (103614); deactivated[20] = (103615); deactivated[21] = (103616);
deactivated[22] = (103617); deactivated[23] = (103618); deactivated[24] = (103619);
deactivated[25] = (103620);
deactivated[26] = "x > 1024";
}This object should not be affecting the instances other than those specified with the deactivated[x] array, yet it did.
Just as I was about to post this topic however, the problem resolved itself. That is to say, I ran the game once more in debug mode to run some more tests, and the game worked fine. So while it is not imperative that I know, it would be interesting to find out why this occurred, and possibly there's an easy way to avoid it in the future.



Find content
Male




