0

I'm trying to get that point by this code:

(pygame.transform.rotate(self.image_to_rotate, angel)).get_rect().topleft

but instead of getting that point I get (0, 0).

My general aim is to print the rotated image from its new top left point coordinates.

Any suggestions?

Maor2871
  • 147
  • 1
  • 13
  • @FredrikRosenqvist No, the `topleft` of a `Rect` is not always `(0, 0)`, It's `(0, 0)` in this case because the `Rect` is created by calling `get_rect()` on a `Surface`. – sloth Feb 15 '16 at 13:52
  • oh thanks, I wasn't aware that pygame.transform.rotate() returns a surface.. I thought it's an loaded image. – Maor2871 Feb 15 '16 at 14:36
  • 1
    Surfaces in pygame don't know anything about positions, so it's not clear what you're actually looking for. – sloth Feb 15 '16 at 14:38

0 Answers0