Rule not responding

GamePizzaGamePizza 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

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    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

  • GamePizzaGamePizza Member, PRO Posts: 227
    edited April 2013
    Thank you for your reply! Yes, the rules are turned on. I copied rules into Custom Behaviours and then moved them into a fresh actor. And that didn't have an effect.

    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?
  • GamePizzaGamePizza Member, PRO Posts: 227
    The back 10 layers seem to work. The front 8 don't. I guess I should try to combine the layers so I don't need to use so many.
  • ShmirlyWhirlShmirlyWhirl Member Posts: 189
    I've recently learned about this- it might be confusing, so please bear with me.

    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.
  • ShmirlyWhirlShmirlyWhirl Member Posts: 189
    The back 10 layers seem to work. The front 8 don't. I guess I should try to combine the layers so I don't need to use so many.
    That means there is something on your eleventh layer that is breaking the code (see above post)

  • GamePizzaGamePizza Member, PRO Posts: 227
    Wow!! Thank you so much for your help!! That was exactly the problem.

    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.

    :)>-
  • fishbowl1fishbowl1 Member Posts: 54
    I'm having this problem now, but I can't seem to find out where my broken rule is. Any adivce? I only have 1 layer, but all rules seem to have stopped working.
  • ShmirlyWhirlShmirlyWhirl Member Posts: 189
    Even if you have one layer, the actors on that layer are still... layered.

    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.
  • cillbiscillbis Member Posts: 3
    I am having this problem - I added a background and the player actor stopped responding. No rules were changed, only a background was added and the player's actor fell apart. I got rid of the background and the actor still does not move or shoot (he dies succesfully and makes the right noises and animations). Prior to adding backgrounds, the game worked perfectly.
Sign In or Register to comment.