SFML community forums

Help => Window => Topic started by: Fantasy on June 13, 2011, 11:07:38 pm

Title: Manage multiple screens in a game
Post by: Fantasy on June 13, 2011, 11:07:38 pm
hello everyone
so i'm working on a game and i want to be able to switch between one screen and another, for example when the game starts you will see the main menu then when the player click on settings for example a new screen will come up, and when the player press back it will go back to the main menu.

so how can i do that ? how can i make multiple screen with each screen has its own consoles?

also if the player press key F in settings it will do some function but if he press key F in the main screen it will do different function.

thankx
Title: Manage multiple screens in a game
Post by: PeterWelzien on June 14, 2011, 07:42:27 am
I suggest you have a look at this wiki article: https://github.com/SFML/SFML/wiki/TutorialScreens.
Title: Manage multiple screens in a game
Post by: Ceylo on June 14, 2011, 02:24:34 pm
I'm not concerned by managing screens and I didn't know this article. But I was curious and I read it and.. I just wanted to say the article is really good (especially the idea).

I wasn't able to find the author in the history.