title: Pygame moving issues
body: <p>When I use the move code in python pygame, it won't load the code when I run.</p>
  
  <pre><code>#right to repestic creatovrs
  
  
  
  import pygame, random, time, sys, pyscroll, pytmx
  from Bruh import *
  from pygame.locals import *
  from pytmx.util_pygame import load_pygame
  
  pygame.init()
  width, height = 800, 600
  backgroundColor = 255,  0,  0
  screen = pygame.display.set_mode((width, height))
  
  blue = (0, 0, 255)
  darkblue = (20, 20, 70)
  white = (255, 255, 255)
  lightwhite = (170, 170, 170)
  skin = (236, 188, 180)
  floorcolor = (229,164,14)
  sun = (250,255,63) 
  
  
  #the four numbers go x axis, y axis, width, and then height
  def drawLevel1(window):
    img = pygame.image.load("Overlay.png")
    window.blit(img, (0, 0))
  def drawLevel2(window):
    img2 = pygame.image.load("Overlay2.png")
    window.blit(img, (0, 0))     
  
  pygame.key.set_repeat(100,100)
  
  Character = Bruh(35, 367)
  
  Bruh.draw(Character, screen)
  
  drawLevel1(screen)
  '''
  while True:
        for event in pygame.event.get():
            if event.type==QUIT or (event.type==KEYUP and event.key==K_ESCAPE):
              pygame.quit()
              sys.exit()
            elif event.type==KEYDOWN:
  
              if event.key==K_DOWN: 
                  Character.moveUp()
  
              elif event.key==K_UP:
                  Character.moveDown()
  
              elif event.key==K_LEFT:
                  Character.moveLeft()
  
              elif event.key==K_RIGHT:
                  Character.moveRight()
  
  for event in pygame.event.get():
    if event.type==QUIT or (event.type==KEYUP and event.key==K_ESCAPE):
      pygame.quit()
      sys.exit()
    if event.key==K_DOWN:
      Character.moveUp()
    if event.key==K_UP:
      Character.moveDown()
    if event.key==K_LEFT:
      Character.moveLeft()
    if event.key==K_RIGHT:
      Character.moveRight
  either of these won't work for some reason. it just wont load the game once these are placed in the code
  '''
  pygame.display.update()
  
  while (True):
      for event in pygame.event.get() :
           if ( event.type == pygame.QUIT or (event.type==pygame.KEYDOWN and event.key==pygame.K_ESCAPE)):
                pygame.quit(); 
                sys.exit();
  </code></pre>
  
  <p>and the code from bruh.py:</p>
  
  <pre><code>import pygame
  from pygame.locals import *
  
  class Bruh:
      def __init__(self, newX, newY):
          self.x = newX
          self.y = newY
          self.img = pygame.image.load("Bruh.png")
      def draw(self, window):
          window.blit(self.img, (self.x,self.y))
      def moveLeft(self):
          self.x = self.x - 5
      def moveRight(self):
        self.x = self.x + 5
      def moveUp(self):
          self.y = self.y + 5
      def moveDown(self):
          self.y = self.y - 5
      def getRec(self):
          myRec = self.img.get_rect()
          return (self.x, self.y, myRec[2], myRec[3])      
  </code></pre>
  
  <p>those are all the .py files, and they must be causing some issue. I don't get any error message, it just won't load when i press run. I can't figure out why. If anyone has some help that would be great</p>