2D Toolkit Forum

2D Toolkit => Support => Topic started by: test84 on April 16, 2014, 10:32:34 pm

Title: Prevent automatic resizing of collider when resizing a tk2dSprite?
Post by: test84 on April 16, 2014, 10:32:34 pm
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.
Title: Re: Prevent automatic resizing of collider when resizing a tk2dSprite?
Post by: unikronsoftware 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.