You may want to have an exit that you cannot open without a key or other object
Go to the exit you want to lock
Tick the Locked box:
When you do you need to give a NAME for the “lock”:
Either write a message or script to explain why:
Next add in the object to open the door and write a description:
Click on the Inventory tab and tick the Take box and add a message:
Click on the Use/Give tab and select Use (on its own):
Scroll down the scripts and select Unlock exit:
Select the name you gave for the unlocking:
Add in another messages to make it more realistic. I have also added a sound effect:
Now when you use the Key in the game it will unlock the door:
Of course the game works much better if you use ONE OBJECT ON ANOTHER OBJECT TO OPEN A DOOR
If you do this you need to choose Use this on (another object) to open an exit.
Here I have used chewing gum wrapper (OBJECT) on switch box (OBJECT) to unlock lift door (EXIT)