But there's a problem, it loops, first it checks if the 'open' value is 0 then turns it into 1, then after that it checks if it is 1 then changes it back to 0.
if (open=0)
{
solid=false;
open=1;
sprite_index=spr_door;
image_index=2;
image_speed=0;
}
if (open=1)
{
solid=true;
open=0;
sprite_index=spr_door;
image_index=1;
image_speed=0;
}How do I fix this?











