Sorry For Bad English
by.x is my sprite x position, by.y is my sprite y position
I want to image gets my sprite's position and gets direction to target pos. I write this code, but it isn't like my wanted.
main_skill_image.blit(pygame.transform.rotate(main_skill_image,math.atan2(target_pos[1]-by.y,target_pos[0]-by.x)/math.pi*180 + 180),(by.x,by.y))