Yes, Definitely a logic issue. I tried the code supplied by matti, and the behavior definitely changed, now when I close the door, the gum floats in the air where it was when the door was open. Here is the code as I have it currently, this time I supplied both interact with closed door and interact with open door, might be easier to spot the flaw. Ps. Don't forget I have boolian set at the game start that says isgumondoor == true. Thanks for your diligence friends!
Code: ags
function oOpenHotelDoor_Interact()
{
if ( cMackey.x<500 ) {
cBingo.Walk(590, 450, eBlock, eWalkableAreas);
oOpenHotelDoor.Visible = false;
oClosedHotelDoor.Visible = true;
if (isgumondoor == false)
oGum.Visible = false;
else oGum.Visible = true;
}
else {
cBingo.FaceObject(oOpenHotelDoor);
cBingo.Say("Mackey is blocking the door.");
}
}
function hCSExit_Interact()
{
cBingo.Walk(569, 378, eBlock, eWalkableAreas);
cBingo.ChangeRoom(2,405,445 );
}
function oClosedHotelDoor_Interact()
{
cBingo.Walk(590, 450, eBlock, eWalkableAreas);
oClosedHotelDoor.Visible = false;
oOpenHotelDoor.Visible = true;
if (isgumondoor) oGum.Visible = true;
}