When I have a button with an actor ontop of it, why does the button still work? How do i prevent it?
AleksandrGames
Member Posts: 54
For example. I have a background. When ever I touch it it should make me lose. But I have an actor on top of the background. I have to press that actor as many times as i can to win, but when ever I click on the actor it acts like I am touching the background. Is this a bug or is there a way to fix this?
Comments
Sorry for asking, i'm still new to this. How do i do that?
Create a rule in button actor: when overlaps collide with actor "..."
change attribute "covered" to true otherwise to false
Create another rule saying: if touch is pressed and attribute "covered" is false
(now put whatever you want it to do)