SFML community forums
Help => Window => Topic started 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
-
I suggest you have a look at this wiki article: https://github.com/SFML/SFML/wiki/TutorialScreens.
-
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.