How do I create a good play button in libGDX?

Hi there,

I’ve recently started practicing with LibGDX and have come across a small problem. I’m trying to create a simple play button for the android app’s menu screen. Similar to that of say, Flappy Bird. I want it so that whenever I press the button, it does something like moves down by 4, then back up, then goes to the next menu. I already have a screen system setup, so just refer to the set menu as simply: “gsm.setState(PLAY);”.

Specifically, when you touch the button, it does a small animation type thing, then proceeds to switch the screen.

Thank you!

  • A