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.
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?
Post Details
- Posted
- 12 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/gamedev/com...