title: How to make the background of a pygame sprite transparent
body: <p>This is supposed to just load a sprite onto the screen, but the background of the image is this black box, and i don't want to see that. How do I make the background of the image transparent?</p>
  
  <pre><code>from Tkinter import *
  import pygame
  from livewires import games
  
  #Creating screen window
  games.init(screen_width = 700, screen_height = 650, fps = 50)
  
  #creating background image for the screen
  screen_background = games.load_image('resized_stars background.png', transparent = False)
  games.screen.background = screen_background
  
  #Creating a sprite
  spaceship_image = games.load_image('pixel_spaceship.png')
  spaceship = games.Sprite(image = spaceship_image, x=350, y=235)
  games.screen.add(spaceship)
  
  #main loop at the end of the program just as in tkinter
  games.screen.mainloop()
  </code></pre>