Step 8 : (Create a safe)
Create a new object and call it "safe". Use the images "safe_opened" ánd "safe_closed" for it and make a state for "opened" and state for "closed".
Work on it in the same way as you did with the door in the first tutorial. Adjust the middlepoint and the walkmap as you can see on the image.
 
  
Change the current state of the safe to "closed" in the roomwindow, because we want the safe to be closed when the game starts.
Write into the script of the safe the standard events (on -mouse, -click, -look).
Additionally insert into the script :
  on (use)
    {
    setfocus (none)
    loadroom (safe)
    }
By using the safe we want to switch to another screen where we can adjust the safe's lock. For this we need to change the focus to "none" to prevent the game from loading
the room where horst is, automaticly, after we have loaded the "safe" room.
Important : If you are using a taskbar (depending on what part you have done in the first tutorial) you have to turn it off with
the instruction "taskbar (false)".
Next we will create the room with the safelock.
Next