tink icon indicating copy to clipboard operation
tink copied to clipboard

Buttons in nested containers

Open Armegalo opened this issue 8 years ago • 1 comments

it might be me, but it looks like Tink doesn't adjust for buttons in nested containers with different scales/positions/pivots.

I have a play button within a scaled container that is itself a child of the stage. The hit detection looks like it's using the scale and position of the stage instead of the nested container.

Armegalo avatar May 16 '17 18:05 Armegalo

I had a same issue with scalled button it looks like the sprite.gx and sprite.gy are not working with scaling in the line 337 in the hitTestSprite function so i changed it to x and y and my button hitbox was fixed hope it will help

idonea avatar Jul 12 '17 19:07 idonea