I am trying to figure out how to use to loops like in dark basic pro. Practicly i am trying to create a small menu. If the user presses enter, the game will jump to the game: tag. But i can't do it using C++ and GDK. Like in DBPro i had to do something like:
Load Image "folder/image.png",1
Paste Image 1,0,0
do
if Upkey = 1 then goto game
sync
loop
game:
'Display, camera settings
'Load what i have to load here
do
'move objects, if, w/e all sorts of stuff
sync
loop
In GDK i found no possible way of doing it.. If i load an image, and paste it before the "while(LoopGDK())" and then use dbWaitKey(); the image doesn't get paste until i press dbWaitKey... and i cannot use if or anything else unless they are in the loop. Pff any ideas on how to get around that?