Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Manage multiple screens in a game  (Read 3012 times)

0 Members and 1 Guest are viewing this topic.

Fantasy

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
Manage multiple screens in a game
« 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

PeterWelzien

  • Newbie
  • *
  • Posts: 38
    • View Profile
Manage multiple screens in a game
« Reply #1 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.
/Peter Welzien

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Manage multiple screens in a game
« Reply #2 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.
Want to play movies in your SFML application? Check out sfeMovie!