SFML community forums

Help => General => Topic started by: Poraft on March 13, 2012, 12:53:35 am

Title: How to manage different screens?
Post 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.
Title: How to manage different screens?
Post by: Orwel on March 13, 2012, 01:10:40 am
Make seach on "Game State Pattern".

But menu to option, i think you can use as state  :wink:
Title: How to manage different screens?
Post by: Orwel on March 13, 2012, 01:12:32 am
Make seach on "Game State Pattern".

But menu to option, i think you can use as state  :wink:

Quote
using multiple screens


I dont undertand exactely this sentence  :?
Title: How to manage different screens?
Post by: Tex Killer on March 13, 2012, 04:36:22 am
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.
Title: How to manage different screens?
Post by: Bigz on March 13, 2012, 09:48:26 am
Maybe this part of the wiki can help you -> https://github.com/SFML/SFML/wiki/TutorialScreens
Title: How to manage different screens?
Post by: Poraft on March 13, 2012, 03:34:20 pm
Game State Pattern; this is what I was searching for. Thanks