Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Door set to locked, but unlocked?
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#6
RE: Door set to locked, but unlocked?

(08-01-2011, 09:00 PM)Asaratha Wrote: No. It worked before I added the monster if I recall correctly. Both doors are locked, you find the key near the beginning and open the first door. That room leads you to another room with 2 doors, you go through the first (unlocked) door. You get to a destroyed room and you pick up a key that opens the next one in the other room. It also sets up a monster. When you get back to the room, you use the key to unlock the door leading to a kitchen.

BUT, for some reason, the kitchen door (door2) is always unlocked.
So nowhere in the code you posted is the kitchen door referenced? If so, then try not relying on the level editor and do so in the script. If not, then add conditional statements to your KeyOnDoor function. Also, for future reference, you may want to be more specific with naming your variables; that is, "key_#" and "keydoor_#" is too vague.

Tutorials: From Noob to Pro
08-01-2011, 09:19 PM
Website Find


Messages In This Thread
Door set to locked, but unlocked? - by Asaratha - 08-01-2011, 04:23 PM
RE: Door set to locked, but unlocked? - by Your Computer - 08-01-2011, 09:19 PM



Users browsing this thread: 1 Guest(s)