GameSalad

When touch is pressed while another actor overlaps or collides with a third actor

abuabed84abuabed84 Posts: 365Member, PRO

for example i have a button i need to press when an actor is inside another actor.
I can't see "overlaps or collides" except for the actor I am trying to set the rules for.

Is there anyway around this?

Comments

  • ToqueToque Posts: 869Member, PRO

    Maybe global Boolean attribute "overlapping"

    Rule in second actor.
    When overlapping the third actor
    Change attribute "overlapping" to true.

    In button two conditions.
    When pressed
    Attribute overlapping is true

    Do whatever you need here.

Sign In or Register to comment.