Hello
Guest
Home
Help
Search
Login
Register
2D Toolkit Forum
»
2D Toolkit
»
Support
»
Prevent automatic resizing of collider when resizing a tk2dSprite?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Prevent automatic resizing of collider when resizing a tk2dSprite? (Read 3296 times)
test84
Jr. Member
Posts: 71
Prevent automatic resizing of collider when resizing a tk2dSprite?
«
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.
Logged
unikronsoftware
Administrator
Hero Member
Posts: 9709
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.
Logged
Print
Pages: [
1
]
« previous
next »
2D Toolkit Forum
»
2D Toolkit
»
Support
»
Prevent automatic resizing of collider when resizing a tk2dSprite?