Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+7 votes

We are trying to get the dragon to move based on the X-coordinate of the click point but can't seem to return the coordinate.

asked in old_CSC201 by (1 point)

1 Answer

+1 vote

Well, checkMouse() returns None if there were no clicks since the last call, which might be your issue.

If that isn't it, checkMouse() returns a Point with x and y values of the last mouse click (when applicable), so you can access the x and y properties of it through getX() and getY() or any other number of methods as you would a normal Point.

answered by (1 point)
...