trying to blit an image onto rect in pygame
I'm trying to blit an image onto a rect and make it an interactive block, but I'm currently stuck on the part of blitting the image as it is not showing up in the output. I don't really understand what I did wrong in my code and I am very stuck, it would be great if I could have some suggestions on this class Sprite(Illust): def __init__(self, filename, filename_collision, x, y, width, height,): super().__init__(filename) #inherit methods and attributes from class illust self.filename_collision = pygame.image.load(filename_collision) self.width = width/2048 * 500 self.height = height/2048 * 50
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.