Nov-07-2019, 05:41 PM
(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)
.