Hello Guest

Author Topic: Prevent automatic resizing of collider when resizing a tk2dSprite?  (Read 3204 times)

test84

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Hi,

For tweening purposes, I resize localScale of a tk2dSprite but it's collider gets resized as well and this causes problems. Any idea how can I prevent tk2d to resize the collider when resizing the sprite via it's scale?

Thanks.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Prevent automatic resizing of collider when resizing a tk2dSprite?
« Reply #1 on: April 17, 2014, 02:54:23 am »
You can create the collider as  child of the sprite. That way changing scale will leave the collider alone. Or change the parenting should you need it the other way around.