Hi peoples, I'm developing a mobile game that consists of connecting dots. I've researched similar topics, but none can solve my problem.
Problem:
I have difficulty connecting points after a collision. For example, I did the part where the player colliding with the object creates the line of the object in question until the player's finger / mouse.
This is what I currently have.
That is the problem that I have faced.
Every time it collides, the Line object is created from the star to the blue point, but I can't definitively create the line from one star to another.
If I could identify the number of collisions it would be much better.
I hope it's understandable