Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
2 days learning Python 3
#6
(Nov-02-2019, 12:18 PM)Donny Wrote: Thank you for your response menator01.

I have changed that around in the code but feel I need to also change something to match the:
pygame.draw.circle(screen,(0,255,0),(xpos,200),20)

Thanks

Don

https://www.pygame.org/docs/ref/draw.htm...raw.circle
So the docs for pygame.draw.circle say the args are:
circle(surface, color, center, radius).
You've got
circle(screen, (0,255,0), (xpos, 200), 20)
The center of the circle you're currently drawing is (xpos, 200), which means it's always 200 pixels down from the top of the window. Your supposition was correct, it should be (xpos, ypos).
Reply


Messages In This Thread
2 days learning Python 3 - by Donny - Nov-02-2019, 11:59 AM
RE: 2 days learning Python 3 - by menator01 - Nov-02-2019, 12:09 PM
RE: 2 days learning Python 3 - by Donny - Nov-02-2019, 12:18 PM
RE: 2 days learning Python 3 - by nilamo - Nov-07-2019, 05:41 PM
RE: 2 days learning Python 3 - by menator01 - Nov-02-2019, 12:23 PM
RE: 2 days learning Python 3 - by Donny - Nov-02-2019, 12:29 PM
RE: 2 days learning Python 3 - by Donny - Nov-08-2019, 10:20 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020