Python Forum
[PyGame] PYGAME draw ball
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] PYGAME draw ball
#2
(Nov-08-2019, 02:51 AM)gean Wrote: The problem is that when loading the image of the ball it is not drawn in the window when executing it.
You are defining your draw method as blitme
    def blitme(self):
        #Draw the ball to the screen
        self.screen.blit(self.image, self.rect)
and in game_functions you are
    balls.draw(screen)
Either change blitme to draw or draw to blitme
Recommended Tutorials:
Reply


Messages In This Thread
PYGAME draw ball - by gean - Nov-08-2019, 02:51 AM
RE: PYGAME draw ball - by metulburr - Nov-08-2019, 11:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyGame] printing integers on pygame.draw.rect Shyckh 1 2,523 Aug-22-2020, 11:44 AM
Last Post: metulburr
  [PyGame] pygame.draw.rect function stretches across the screen instead of moving BubblesTheGiraffe 2 3,662 Jun-11-2019, 08:32 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

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