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.

Newcomers DBPro Corner / help with keeping the window open

Author
Message
l0st_s0ul
15
Years of Service
User Offline
Joined: 18th May 2009
Location:
Posted: 18th May 2009 22:15
okay nice to be here i bought DBpro and im following the tut
http://forum.thegamecreators.com/?m=forum_view&t=64198&b=7

so all is good
except i dunno how to keep the window open to show the health on screen so could someone please help me so far i have



but when i click run the window flashes but doesent stay open and i like to code i know a tiny bit of C++ but havent coded in months so gota relearn

if it is to be its up to me
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 18th May 2009 22:19
The simplest way is to add a WAIT KEY command to the end of your code.

l0st_s0ul
15
Years of Service
User Offline
Joined: 18th May 2009
Location:
Posted: 18th May 2009 22:31
and what is the wait key command ?

if it is to be its up to me
bobbel
15
Years of Service
User Offline
Joined: 5th Jan 2009
Location: In my DBPro case xD
Posted: 18th May 2009 22:38
or a loop with the sync command

do
sync
loop

(\__/)
(O.o )
(> < ) This is Bunny. Copy Bunny into your signature to help him on his way to world domination!
l0st_s0ul
15
Years of Service
User Offline
Joined: 18th May 2009
Location:
Posted: 18th May 2009 22:49
i did

sync
loop

but it said that command was out of place

how wouldi add the code to what i already have ?

if it is to be its up to me
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 19th May 2009 00:10
WAIT KEY is a command that ... wait for it ... waits for you to press a key!

You also misunderstood what bobbel wrote - he used 3 commands. DO, SYNC and LOOP. You only used 2.

Login to post a reply

Server time is: 2024-09-28 06:25:49
Your offset time is: 2024-09-28 06:25:49