Solved

Menu Screen

Posted on 2011-02-21
1
979 Views
Last Modified: 2012-05-11
I am creating a game in gamebryo and I am trying to add a menu to it. In a class where I create the gams states I have added a state for the menu which I have added in the code ection below.

The double in this code below is the time the menu screen is displayed. I want to replace this with a key input so it will disapear when the user presses a key.

Below I have put the code of a key input in gamebyro just to show how to do it. I am just struggling to put this syntax together.


 pInputService->AddAction(
            "MOVE_FORWARD",
            kCAT_INVALID,
            NiAction::KEY_MASK | NiInputKeyboard::KEY_UP,
            ecrInput::InputService::ON_ACTIVATE | ecrInput::InputService::ON_DEACTIVATE);

pGameStateService->AddState(EE_NEW GameState(
		pGameStateService,
		SplashScreenStateID,
		"SplashState",
        egmSample::PAUSE_SCHEDULER |
        egmSample::HIDE_MAIN_RENDERER |
        egmSample::DISPLAY_TEXTURE ,
		4.0,
		LoadingStateID,
		"Menu.dds"));

Open in new window

0
Comment
Question by:tango2009
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 21

Accepted Solution

by:
developmentguru earned 500 total points
ID: 34948939
Since Gamebryo appears to be a commercial product, and I am not sure I want to spend my test drive answering this question, I have to ask if you have looked through the tutorials here first:

http://www.gamebryo101.com/

I have no idea of the cost of using gamebryo.  If you can let me know that it is low cost for experimentation, perhaps I can dig into it more.
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question