Create a sprite's clone in random place. Choose which oblect will be active with keyboard button's help. «1» - sprite «2» - its clone Active object changes its colour. Active object mooves to the passive one and when active touches to it, passive object change its coordinates. Coordinates are visible.