Relative Content

Tag Archive for pygamepygame-surface

How do I get my player character to show up?

I can’t get my player character to load in on the screen :”)
I’m trying to make a crossy road esque game, but currently the player character doesn’t show up on the screen :/
I’ve tried moving pygame.display.flip() around, but that doesn’t seem to work either :’)
Does anyone know what might be wrong with my code?
I’m pretty new to using pygame, so I’m still figuring out the basics

Get a rect from a mask in pygame

i’m tring to get a rect from a mask in pygame. It works but the rect has the width of the entire png image. But I want a rect based on the mask.

why is pygame.Surface.fill() not working here?

i was making a game for class so i was following a tuto , here it is : text
and i got stuck at the min : 21:52 where my code is correct yet im having the black pygame window only (the white sprites aren’t showing) and i couldn’t figure out the reason why.