I have a room with two moveable sections, one to the left of a gate and one to the right. The character should only be able to walk freely on both after opening the gate with a key. What's the best way to prevent the character from reaching the left section?
Currently I'm using a region with a "move unto" script which checks against a global variable and moves the character back a pace or two. Is there a better way?
You can disable/enable walkable areas.
RemoveWalkableArea(x); // player isn't able to walk on area x any longer
RestoreWalkableArea(x); // player can walk there again