I'm using scene2d in libgdx library for creating some UI in my game.
I used a Table and I want to take some scaling action when user touches to make a button touching sense.
When I used any other "Actor" types like Group and giving it a scale action it works but not Table.
this is my Table definition:
Table table = new Table();
table.setSize(width, height);
table.setPosition(x, y);
table.setOrigin(width/2, height/2);
table.add(new Label(...));
table.row();
...
And in my touchDown event I give it a scale action:
table.addAction(Actions.scaleTo(0.8f, 0.8f, 0.1f));
And in touchUp I give it another action to get original scale:
table.addAction(Actions.scaleTo(1f, 1f, 0.1f));
As I said this code works for another types of Actors like Image and Group. Any Ideas that why don't works for Table?