title: Why are my images Overlapping for Pygame?
body: <pre><code>import pygame
  import random
  import os
  import time
  
  pygame.init()
  
  #window and background
  win = pygame.display.set_mode((1000,750))
  pygame.display.set_caption(&quot;TD GaME&quot;)
  background_img = pygame.image.load('best_backgroundv2.png')
  background = pygame.transform.scale(background_img,(1000,750))
  
  class Enemy(pygame.sprite.Sprite):
      def __init__(self, x, y, scale):
          pygame.sprite.Sprite.__init__(self)
          img = pygame.image.load('Run/HeavyBandit_Run_0.png')
          self.image = pygame.transform.scale(img, (int(img.get_width() * scale), int(img.get_height() * scale)))
          self.rect = self.image.get_rect()
          self.rect.center = (x, y)
          
      def draw(self):
          win.blit(self.image, self.rect)
  
  e_1 = Enemy(400, 500, 3)
  </code></pre>
  <p>So I am relatively new and trying to make a enemy(image) appear but is seems it has been overlapped by my background. I think it is due to how poor my code is in reference to setting the &quot;background&quot;</p>