Solved

Menu Screen

Posted on 2011-02-21
1
980 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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

A short article about problems I had with the new location API and permissions in Marshmallow
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Introduction to Processes

724 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