Just encountered a new bug, or at least a new one for me:
___________________________________________
ERROR in
action number 3
of Step Event
for object oPlayer1:
Error in code at line 861:
trap.status = 1;
^
at position 30: Cannot assign to the variable
This error occurs when you pick up the golden skull from a ceiling trap when both of the side-walls are gone (which prevents the exits from shutting down). Is this just my spelunky acting weird, or does everyone have this issue? Its not very critical though, just click ignore and everything is ok.
You deserve some kind of playtesting/debugging trophy, dude. It's surprising this one hasn't been found yet in the past 5 years, though.
Reproduced and working fix tested.
Search for 'oDoor' in the oPlayer1 Step 'Action' code block.
Current code: (is the same in 1.1 and 1.2 source)
trap = instance_nearest(x-64, y-64, oDoor);
trap.status = 1;
trap.yVel = 1;
trap = instance_nearest(x+64, y-64, oDoor);
trap.status = 1;
trap.yVel = 1;
Should be:
trap = instance_nearest(x-64, y-64, oDoor);
if (trap)
{
trap.status = 1;
trap.yVel = 1;
}
trap = instance_nearest(x+64, y-64, oDoor);
if (trap)
{
trap.status = 1;
trap.yVel = 1;
}
Although since there can only be one idol trap room in a temple level, you could probably just use:
with (oDoor)
{
status = 1;
yVel = 1;
}
I guess it's rare that the player destroys both stone doors without disturbing the idol.
Haven't looked into the second one you mentioned but you're probably right on about it being a depth thing.