0

Making a pong game and I don't know how to get the paddle to be where the mouse x is.

I've looked at some more pages but those require python extensions. I want to keep it simple.

  • 2
    Why do you not want to use any third party libraries? For this task they are often more simple. See: https://stackoverflow.com/questions/25848951/python-get-mouse-x-y-position-on-click?rq=1 and https://stackoverflow.com/questions/3698635/getting-cursor-position-in-python – Goose Apr 29 '19 at 02:30
  • Out of curiosity: How do you plan to show a paddle if you have the coordinates? – Michael Butscher Apr 29 '19 at 02:33
  • Does this answer your question? [Python get mouse x, y position on click](https://stackoverflow.com/questions/25848951/python-get-mouse-x-y-position-on-click) – not2qubit Jan 16 '22 at 22:30

0 Answers0