Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Help on "Pause Game" coding && etc...

Author
Message
BTERangerEllis
11
Years of Service
User Offline
Joined: 18th Apr 2013
Location:
Posted: 19th Apr 2013 01:58
So I have been coding the starting part of a game I want to make but I can't get it to work the way I want, and I have NO idea why it isn't. I've looked it over and over and it should work but isn't. I'm thinking it is some sly part of the program that a novice wouldn't know. Here is the code.


When I click "Play Game" it loads the next map but doesn't show the text. When I leave the map out, the text briefly flashes but disappears. After that point the coding doesn't work, except for the dbEscapeKey ( ) function. Is there something I am missing??

-BTERangerEllis-
bkbatman
14
Years of Service
User Offline
Joined: 6th Sep 2010
Location:
Posted: 27th May 2013 07:30
I'm a little confuse on what you trying to do.
I have not work in C++ for months. But I see if I can still remember.

[/code]


if(dbSpaceKey() == 1 && SpacePressed == false)
{
SpaceKeyBool = true;
SpacePressed = true;
}

else SpaceKeyBool = false; //I never seem this practice with else statement before.
//Try doing this
else if(SpaceKeyBool == false && SpacePressed == true)
{
SpaceClick == true;
SpacePressed == true;

}
if ( Menu == true && Screen == 1 )//So if both of these are true
{
if(MenuLoaded == false)// why got this then it then? I'm sure you trying to load the menu so it should be if(MenuLoaded == true)

bool PlayGameXY; //?? never seem a bool work like that before in a if statment.
[code]

the legendary master

Login to post a reply

Server time is: 2024-11-18 21:55:58
Your offset time is: 2024-11-18 21:55:58