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.
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
can anyone help me?
solved