Le Twitch Posted October 1, 2014 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? Link to comment Share on other sites More sharing options...
lewster32 Posted October 1, 2014 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. Link to comment Share on other sites More sharing options...
Le Twitch Posted October 1, 2014 Author 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? Link to comment Share on other sites More sharing options...
lewster32 Posted October 1, 2014 Share Posted October 1, 2014 No, I believe the state clears all display objects when it's closed. Link to comment Share on other sites More sharing options...
Recommended Posts