Le Twitch Posted October 1, 2014 Report Share Posted October 1, 2014 Before the game starts, I want to have a start button and nothing else in the game besides the background. What is the best way of doing this? Should I have the sprites created, hide them and disable their functions until the start button is pressed or create the sprites themselves once the start button is pressed? If the second option, how would you go about it? Quote Link to comment Share on other sites More sharing options...
lewster32 Posted October 1, 2014 Report Share Posted October 1, 2014 States are the preferred way to do this. If you've already set up the game with states, you can just create a new state which is started first which just waits for an input before starting the game state. Quote Link to comment Share on other sites More sharing options...
Le Twitch Posted October 1, 2014 Author Report Share Posted October 1, 2014 States are the preferred way to do this. If you've already set up the game with states, you can just create a new state which is started first which just waits for an input before starting the game state. Do I need to kill the sprites created in previous states? Quote Link to comment Share on other sites More sharing options...
lewster32 Posted October 1, 2014 Report Share Posted October 1, 2014 No, I believe the state clears all display objects when it's closed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.