so the previous project worked good but it had a bug that the dots can't go offscreen so i fixed that bug by playing a bit with the costumes, don't worry because i didn't edit the dot i just added an invisible square so try making the cam x and y to the limits you want!
the original project for code and me for bugfix