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 with simple button

Author
Message
Jamie_Leigh
12
Years of Service
User Offline
Joined: 15th Dec 2011
Location:
Posted: 18th May 2013 15:36 Edited at: 18th May 2013 16:03
Hi I'm having some trouble implementing a menu button, here is my code..



The problem is, when the compiler enters the gamemenu() function the screen just goes blank and freezes up.

Thanks in advance.

EDIT

I've just solved my problem, it turns out I needed a dbSync() just after entering the while loop.
Jamie_Leigh
12
Years of Service
User Offline
Joined: 15th Dec 2011
Location:
Posted: 18th May 2013 17:48
Okay so I've encountered another problem with this button now.
when I click the play button instead of switching my enumeration state it just freezes.



Thanks
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 24th May 2013 19:59
You are making the dbSync command conditional. Doing that will make you program update ONLY when the condition is true. Having SOME areas in the game that dbSync conditionally can be useful, but the way you are doing it will cause everything to freeze until the condition is true.



The fastest code is the code never written.

Login to post a reply

Server time is: 2024-03-28 20:00:09
Your offset time is: 2024-03-28 20:00:09