However, if he doesn't have any keys, he cannot pass through it.
if global.keys > 0
{
oDoor.solid = false;
sound_play(door_open);
instance_destroy();
}
else
{
global.keys = 0
oDoor.solid = true;
}
Except when I hit the door first, and THEN grab the key, then try again, it doesn't work. But if I get the key first, then it opens.
How do I fix this?
Edited by seanpk21, 09 September 2011 - 02:50 AM.











