Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Them GlobalBounds are wrong !  (Read 7944 times)

0 Members and 2 Guests are viewing this topic.

Falke88

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
Re: Them GlobalBounds are wrong !
« Reply #15 on: January 15, 2015, 04:47:51 pm »
Wow in this whole process of making this understandable for you in a test class I managed to resolve the problem by myself :D

The problem was: GetGlobalBounds will give back the coords of the next higher instance the sprite belongs to. In my case sprite is within a Player or Enemy object. These object actually move but the Sprite within the object range isn't moving.

Thanks for your patience anyway guys! finally I can move along coding !

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Them GlobalBounds are wrong !
« Reply #16 on: January 15, 2015, 04:55:09 pm »
Quote
Wow in this whole process of making this understandable for you in a test class I managed to resolve the problem by myself
Now you understand why we insist so much on the complete & minimal code ;)
Things become so clear once you've removed all the unnecessary code.
Laurent Gomila - SFML developer