SFML community forums
Help => General => Topic started by: Poraft on March 13, 2012, 12:53:35 am
-
Hello guys,
I just can't figure it out, what is a proper way of using multiple screens. By this I mean a flash screen, menu, in-game, options etc.
Can someone explain this to me?
Thx in advance.
-
Make seach on "Game State Pattern".
But menu to option, i think you can use as state :wink:
-
Make seach on "Game State Pattern".
But menu to option, i think you can use as state :wink:
using multiple screens
I dont undertand exactely this sentence :?
-
You can control the time (with sf::Clock) and then decide on what to print based on that. You can also control input events and use them to manage the menu options.
If you want something automatic, you should search for a game engine instead.
-
Maybe this part of the wiki can help you -> https://github.com/SFML/SFML/wiki/TutorialScreens
-
Game State Pattern; this is what I was searching for. Thanks