I have a Rule that only works once... and it shouldn't

BrouhahaBrouhaha Member Posts: 11
edited January 2012 in Working with GS (Mac)
I have one actor with a Rule that is set to fire off whenever a game-level boolean is set to true. The boolean attribute is initialized as true, so the rule will run when the scene starts. The rule randomizes a few attributes and updates the image that the actor displays. The final behavior within the rule sets the boolean to zero or false. Kind of a 'turn the light off when you leave' thing.
Clicking on one of the other actors within the game generates a behavior that sets that game level boolean to true again. The game calls for a new set of variables every time you click, which the actor with the big rule should be able to handle. The problem I'm having is this: the rule works perfectly when the game starts. The boolean is true so the behaviors within the rule work and then the boolean is set to zero. Clicking on a game actor sets the boolean back to true, I have a debug actor which displays this. So I'm good there. But the rule that should key off of the boolean never fires off again and I cannot figure out why.

Am I missing something basic or do the gods just hate me?

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Try putting the rule set in a timer and check the run to completion box. you can even have the timer set to after 0 seconds.
Sign In or Register to comment.