Rule behavior for actor above another actor

GamePizzaGamePizza Member, PRO Posts: 227
edited November -1 in Working with GS (Mac)
I have an actor, a character, above another actor, a background. They both have touch event rules. When the character actor is touched, the touch events for both the character and background are activated. Is there a way so that only the touch event for the character is activated and not for the background?

Comments

  • old_kipperold_kipper Member Posts: 1,420
    make a game or scene attribute that is fired from a touch inside of the actor you want touched and have it cut when the touch is released. Then make rules for the background and other actor that means that they are only able to be fired when the attribute is negative. If there is a problem with touch inside you could try to change the rules to be based on the x/y coordinates of the foreground actor with values set to check if they are higher or lower than the coordinates plus/minus its size, for the allowed touch rules of the background/other actor.

    hope that helps

    kipper
Sign In or Register to comment.