title: How can I pause one pygame function without pausing others?
body: <p>So I have a function (below) that I want to change a variable every 2 seconds. Currently the function works in changing the variable (goblinx) every 2 seconds. The problem is that time.wait causes all functions to pause for 2 seconds. How could I only have the function movegoblin() pause.</p>
  
  <pre><code>def movegoblin():
      global goblinx
      global gobliny
      x = 1
      if x == 1:
          goblinx += 32
          pygame.time.wait(200)
  </code></pre>