Hello Guest

Author Topic: GetBounds not working anymore  (Read 3731 times)

pedronveloso

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 13
    • View Profile
GetBounds not working anymore
« on: November 22, 2013, 11:17:25 pm »
I recently switched to Physics2D and I noticed Collider2D doesn't offer a Bounds method. Likewise, now tk2dBaseSprite.GetBounds() doesn't work either.

The purpose of using Bounds was to get the center of the sprite, is there a workaround this? (I'm already using attach point so don't suggest that plz).



unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: GetBounds not working anymore
« Reply #1 on: November 23, 2013, 07:15:48 pm »
What do you mean by GetBounds doesn't work?

pedronveloso

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: GetBounds not working anymore
« Reply #2 on: November 25, 2013, 03:47:59 pm »
My error, sorry. My tk2dSprite reference was null because I was doing something wrong, hence the GetBounds not working.