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


Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I'm back, with a new custom story and another question! [SOLVED]
Karai16 Offline
Member

Posts: 164
Threads: 24
Joined: Apr 2011
Reputation: 0
#10
RE: I'm back, with a new custom story and another question!

(07-27-2011, 01:06 AM)Anxt Wrote: Ok, here's what you do:

Since you already have your GlobalVarInt set up, use an if statement in your hallway map to unlock the door. So, for example:

void OnEnter()
{
if(GetGlobalVarInt("LanternVar")==1)
{ SetLevelDoorLocked(blahblahblah);
}
}

Here's where I suspect the problem is: You have your LanternVar set to 1 at the start of the game. Set it to 0. Then, when you get the lantern, adding 1 to it will make it 1, thus making the function I have outlined for you above work properly. Hope that helped Smile

Thanks anxt! It's working completely fine now Smile

Custom stories:
Her Games (100% Complete)
Her Games, All Bugs Fixed (100% Complete)
07-27-2011, 04:15 PM
Find


Messages In This Thread
RE: I'm back, with a new custom story and another question! - by Karai16 - 07-27-2011, 04:15 PM



Users browsing this thread: 2 Guest(s)