title: In pygame, how do I rotate an image around its middle bottom?
body: <p>I am making 2D Tank game and I have a problem with rotating my turret. Turret should rotate around its middle bottom but it rotates around the center.</p>
  
  <pre><code>def turret_rotate(self):
      turret_rot_image = pygame.transform.rotate(self.turret_image,self.turret_angle)
      turret_rot_rect = turret_rot_image.get_rect(center = self.turret_rect.midbottom)
      return turret_rot_image,turret_rot_rect
  </code></pre>
  
  <p>can anyone help me?</p>
  
  <p><strong>solved</strong></p>