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.

DarkBASIC Discussion / trouble with cls

Author
Message
Evil Midget
20
Years of Service
User Offline
Joined: 3rd Sep 2004
Location: United States
Posted: 25th Sep 2004 02:41
please help me, I am making a game and in my options menu everytime I change this I have to use cls, but I have to let go of the key to make it show the screen again. here is my source code.



derekalan18
visit my website @
www.johnsonsoftware.bravehost.com
John Y
Synergy Editor Developer
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 25th Sep 2004 04:21
The CLS command clears the whole screen, so you need to put this BEFORE any other command that is drawing to the screen. I would recommend you put your IF statements that use the CLS method above everything, or rewrite your code so that it starts with CLS and then only draws what is needed (IF statements)

Evil Midget
20
Years of Service
User Offline
Joined: 3rd Sep 2004
Location: United States
Posted: 25th Sep 2004 10:20
thanks, it works great.

derekalan18
visit my website @
www.johnsonsoftware.bravehost.com
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 25th Sep 2004 18:22
another thing - ur using sync rate 20 and the sync command, but sync isn't even on!

put right at the top of the program 'sync on'.

Then - its perfect (with what JohnY said of course)

[img src=http://blanky.pt-web.net/ddd.gif] >::p
Evil Midget
20
Years of Service
User Offline
Joined: 3rd Sep 2004
Location: United States
Posted: 28th Sep 2004 09:06
I have the sync rate at the top of my program. I only gave you the options screen on my program.

derekalan18
visit my website @
www.johnsonsoftware.bravehost.com
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 30th Sep 2004 02:44
ohhh... right, sorry.. my mistake

[img src=http://blanky.pt-web.net/ddd.gif] >::p

Login to post a reply

Server time is: 2025-05-25 15:37:26
Your offset time is: 2025-05-25 15:37:26