3
« on: October 25, 2012, 03:53:32 pm »
So I have an event when an enemy is created it increments an enemy pool attribute by one and when an enemy dies it decrements the enemy pool by one. The enemy pool starts at 0 and I have an if statement that makes a door lock attribute true if the enemy pool exceeds 0 and an otherwise if that sets the door lock back to false when i hits 0 again. This is all to lock a door when an enemy is in the scene and i have my door region set up so that is door lock is true the door won't work. All of this works if the player just enters the room, kills the enemy and then leaves, but if you enter the door region while the enemy is alive and then kill it the door remains locked. Any one have a clue why?