Solved

Menu Screen

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

759 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now