Variables not working

Hi all,

One of my students is working on this game. The premise is that there is a “maniac” the player is trying to avoid. Basically, the students wants it to play so that when the maniac looks at you (the player) and you’re not in the cage, you get caught. If you are in the cage you are safe. The maniac checks the room every 45 seconds or so. We created floor sensors for different areas of the game, so that the cage is the safe zone– that works. The problem is, when the maniac goes away, the player should be able to leave the cage without “getting caught” or restarting. But the game currently is restarting regardless if the maniac is there or not. We’ve tried a variety of variables but nothing seems to be working. Help would be appreciated!

1 Like