Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed (Author was flagged for spam)

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

4
What's the code layout / logic behind animating menus? [Libgdx]
Author Summary
Slyvr89 is in Libgdx
Post Body

How do you organize code for animating menus? For instance, when you click the Play button, all the entities on the screen fly out and the next menu flys in. Right now, I don't have any animations, so when you click play, it just changes the current menu variable to the "game" menu object.

This is how I'm thinking it works, but not sure how to implement it:

A button is clicked, save some variable that says what button was clicked, which animation to start, what operation to perform when finished animating, and then start the animation. Also, make it so no other update methods are run while animating=true;

Is there a better method or any recommendations how to organize it?

Author
Account Strength
0%
Account Age
14 years
Verified Email
Yes
Verified Flair
No
Total Karma
14,598
Link Karma
5,756
Comment Karma
8,842
Profile updated: 8 months ago
Posts updated: 1 year ago

Subreddit

Post Details

Location
We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
12 years ago