Problem: I have 2 intersecting actors and 1 touch makes them go off.

Goodnight GamesGoodnight Games NYCMember, PRO Posts: 184
I've got two actors in my scene one is above the other. The behind one is a big box and the in front one is a little box. My thought was if I put on above the other in the scene layers the touch won't register through them. It does setting both actions off and causing a massive game problem. The behind actor can't be moved and the in front actor will pop in when the player gets a power up and go away once it's used so I can't build the behind actor around it because there will be a hole in the control button.

Is there a way to make it where one will register at a time depending on where you press? I have both of these running off a touch -> pressed rule to go off but I'm really stumped as to how to go about this.

Thanks for the help!

Comments

  • BoomshackBarryBoomshackBarry Member Posts: 712
    This template might be useful:

    http://www.deepblueapps.com/layer-selection-template/

    I'm not on my mac right now so I can't check it myself, but from the video it looks like it might point you in the right direction. Hope it helps!
  • Goodnight GamesGoodnight Games NYCMember, PRO Posts: 184
    Thanks for responding.

    http://i.imgur.com/5RKZX1S.png

    That image describes my problem a bit better, the green is the below actor and the bomb is the top actor.

    I just want it so when you press the bomb the green actor doesn't go off as well.
  • LumpAppsLumpApps Member Posts: 2,881
    image
  • LumpAppsLumpApps Member Posts: 2,881
    Have you tried to put the touch rule of the green in the otherwise of the touchrule of the bomb?
    So when bomb is touched do blabla and otherwise when green is touched do blabla2...
  • Goodnight GamesGoodnight Games NYCMember, PRO Posts: 184
    Wait so I would have nothing in the green and it would all be in the bomb actor? I'm not sure I understand.
  • LumpAppsLumpApps Member Posts: 2,881
    Uhm... stupid me. I was not thinking right :)
    There would have to be a trigger in the bombs rule.
    Wait a bit I'll try and make a demo and upload in 5, 4 , 3...
  • Goodnight GamesGoodnight Games NYCMember, PRO Posts: 184
    You are a gentleman and a scholar thanks!
  • LumpAppsLumpApps Member Posts: 2,881
    just a few more minutes
  • LumpAppsLumpApps Member Posts: 2,881
  • Goodnight GamesGoodnight Games NYCMember, PRO Posts: 184
    You are beyond awesome, thanks so much!!
  • LumpAppsLumpApps Member Posts: 2,881
    You're welcome
Sign In or Register to comment.