Rule not responding
GamePizza
Member, PRO Posts: 227
A rule on my actor is not responding. Other rules on other actors are working. But rules on this actor and other actors are not responding. One behavior on an actor is to display text and it doesn't display the text.
Comments
Hi @GamePizza check whether you've turned the rules off (top left of rules and behaviours. If that's OK and not the problem, copy your Rules into the Custom Behaviours and try with a fresh actor. If still not working, post your Rules in that actor and we'll take a look.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
I tried even just a simple rule like the Display Text Behavior and it didn't work.
What seems to have an effect however is when I change the Layer layout. Maybe I have too many layers in my scene? Is there a limit? I have 18 layers in my scene. If I move layers to the back or near the back, then the rules will work. When the actor layer is in the front, it's rules do not work. Are you aware of a problem like this? Do you know a solution?
With the latest update, GameSalad now 'breaks' once it hits bad logic. As in, once it finds a rule or calculation that doesn't make sense, all behaviors after that get ignored.
GameSalad also loads all the rules in reverse order (relative to layers). It loads the things on the lowest layers first, ending with the top layer. That's why when you move the layering around different rules begin to work.
My suggestion is to keep turning off rules on actors that may be giving you trouble until you find the culprit.
In layer 11, there was a rule where I Change Attribute self.Position.X to 835.412
Looks like 3 decimal places created the problem. I changed it to 2, 835.41 and now it works.
>-
If all the rules have stopped working, the very bottom actor on the layer has some broken code. (GameSalad loads from the back to the front)
I would suggest going through that actor turning off rules and behaviors until the other behaviors start to work. At that point, you have found the problem.