Hey I want to rotate the image about a point (100,100) but by using the pygame.tranform.rotate image moves itself from the point along with the rotation . Below is the code
import pygame from pygame.locals import * from sys import exit pygame.init() screen=pygame.display.set_mode((640,480),0,0) pygame.display.set_caption("Rotation using transform module") image=pygame.image.load("fugu.png").convert_alpha() a=0 clock=pygame.time.Clock() b=(100,100) while True: for i in pygame.event.get(): if i.type==QUIT: exit() screen.fill((0,0,0)) a=a+10 image=pygame.transform.rotate(image,a) screen.blit(image,(100,100)) pygame.display.update() clock.tick(1) Whats my mistake and whats the solution??? Thanks Ankur Aggarwal