How to know whether the region is occupied or not?

How to know whether the region is occupied or not?

I have 2 different game pieces which i don’t want to be placed in the same region when i touch that region.What i mean is like in tictactoe i don’t want circle and cross to be overlapping.I want only one game piece to be in that region.Is there any way to do it or any function to say that region is occupied?

Hi @sksb619,

I assume you’re not using physics (the physics engine) for this. If true, please see the following tutorial on how to detect overlapping between non-physical objects:

https://coronalabs.com/blog/2013/07/23/tutorial-non-physics-collision-detection/

Best regards,

Brent

Thank u Brent.

Hi @sksb619,

I assume you’re not using physics (the physics engine) for this. If true, please see the following tutorial on how to detect overlapping between non-physical objects:

https://coronalabs.com/blog/2013/07/23/tutorial-non-physics-collision-detection/

Best regards,

Brent

Thank u Brent.