Touch through actor help
I have 2 actors one in front of the other. I am able to click through the actor in front to the one behind.
I have searched the forums and videos and I can not find any solutions for this.
I have searched the forums and videos and I can not find any solutions for this.
Comments
In top layer actor,
When all is true
When touch is pressed
when InteractA is false
---your behaviours-----
when actor collides or overlaps with (bottom actor)
Change Att. InteractA to true
---your same behaviours----
And in the bottom actor, its Rules/behaviours only work when InteractA is false
Along those lines. Hope that's enough there to get you experimenting with the actors.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
So we really need to know what your are trying to accomplish to offer you better help in this area.
___________________________________________________________________________________
TEMPLATES AND PROJECT HELP BY TENRDRMER. CLICK HERE!!!
AppSolute Entertainment on Facebook
AppSolute Entertainment on iTunes
in gs creator search: "Touch Only Top Actor Demo"
hope it helps
and then in the black ball make a rule
when touch is inside
--change attribute game.touchallowed to false
Otherwise
--change attribute game.touchallowed to true
and then add to your touch is pressed rule on the white ball add the condition game.touchallowed is true
Video link to see my game. Sorry if the quality is poor. But you will get the idea of the game