Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Zero_Cool2003

Ok gettting a grasp of it so..

This topic is 5653 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

ok im gettting it and once you start and get into it its easy but how do I make a game window with buttons that when click go to varrious other screens how does it all come together for game programing? Zero_Cool Begginer now. Destined to wield the unimaginable power of code!

Share this post


Link to post
Share on other sites
Advertisement
I think you need to narrow down your question, Zero. In my program I''m writing now, I detect if a user clicks a button (on a Windows dialog box), but I had previously written the same thing, using rectangles I drew to the screen as buttons. There are infinite ways to do buttons Could you be more specific with what you want?

Peon

Share this post


Link to post
Share on other sites
Okay I have realized that I speak so that it is clear to me but only me(even sometimes Im confused by what I say).

What I was wondering is how to make a window apear with a backround and buttons like "New Game",or "Quit", then how do I make it advance to the next window or screen or exit the game accordingly when the button is pushed?
If you know of a tutorial it might be easier then you having to inturpit it all to me:


So like this:

Game Menu -> Click On "New Game" -> The Next Screen
or
Game Menu -> Click On "Exit" or "Quit" -> Exits The Game

If this doesn''t help clarify my question I''m sorry I can always give it another go...

Zero_Cool
Begginer now.
Destined to wield the unimaginable power of code!

Share this post


Link to post
Share on other sites
Yah please clarify are you thinking of something like a main menu for a game or a windows program?

Share this post


Link to post
Share on other sites
What I did was have a game state variable and handle each state (menu, main gameplay etc.) with a switch statement.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!