scaleTo scaleBy doesn't work for ImageButton - LIBGDX

835 Views Asked by At

I'm trying to scale an ImageButton after a button click but it seems it doesn't have any effect. I've also tried adding the ImageButton to a table and then scale the table but it doesn't work also. Actions like fadeIn, fadeOut , and moveTo work though.

    btnPlay.addListener( new ClickListener() {             
        @Override
        public void clicked(InputEvent event, float x, float y) {
            imagebutton.addAction(scaleBy(10f, 10f, 2f));
        };
    });

What can be the problem?

1

There are 1 best solutions below

0
On BEST ANSWER