[SOLVED] Adding a magnetic 🧲 effect to your game

Please how can someone add a magnetic effect to his/her game ?
(Magnet attracting coins)

This should be simple.
Compare the distance between two objects. And add a force to the object you want to move.

2 Likes