on every tap there is an opject created and on collision with an obstacle i want that particular spawned object to be destroyed not all
Develop games in your browser. Powerful, performant & highly capable.
When you use condition object A on collision with object B, it picks that one instance of object A to destroy.