Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Menu Screen

Posted on 2011-02-21
1
Medium Priority
?
983 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
If you are a mobile app developer and especially develop hybrid mobile apps then these 4 mistakes you must avoid for hybrid app development to be the more genuine app developer.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Suggested Courses
Course of the Month20 days, 21 hours left to enroll

810 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