Actor in the back detects clicks from top actor
Primo.TM
PRO Posts: 35
Hi, here is my problem:
I have two actors in my scene - the bigger one covers all the screen and is on top, but the actor in the back also detects clicks made in the top actor. How can I avoid this?
Thanks.
I have two actors in my scene - the bigger one covers all the screen and is on top, but the actor in the back also detects clicks made in the top actor. How can I avoid this?
Thanks.
Comments
So it doesn't matter that there is an Actor on top of the other one, it still registers as being touched. Both do.
If you track when overlapping Actors are being touched with a Boolean (for example), you can track whether one or both are being touched.
Thanks anyway, I guess I'll go with the boolean.
The boolean idea works well. Another idea would be spawning the new (bottom) actor when the top actor is removed.