I'm working on a game in which I have objects being generated that are destroyed when clicked on. With the way it works, two instances of this object may overlap. If a click is made in a point where two overlapping objects are, both are destroyed. How do I make it so only the object in front is destroyed?
Develop games in your browser. Powerful, performant & highly capable.
Add the condition "pick top/bottom"
That worked. Thanks a bunch!