Hi guys!
I have a trouble with correct handling of a tap (or mouse click) on an actor using libGDX.
Made an actor skeleton in spine like this (root bone in the left bottom corner):
Loading Image
In libGDX i have an InputListener which works correctly in this case.
PROBLEM begins when i flip the image using skeleton.setFlipX(true):
Loading Image
My clickable area of actor in game reamains unchanged. It marked with dotted square on pic.
- Tryed to position root bone in the center of an actor - just about the same trouble.
- Tryed to play with such code:
setWidth(240);
setHeight(180);
setBounds(-240, 0, 240, 180);
also doesn't work.
I stuck - pls help!