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 / Blinking Screen

Author
Message
D olive
18
Years of Service
User Offline
Joined: 28th Jan 2007
Location:
Posted: 28th Jan 2007 17:10
I just got DB, whenever i get into runtime, my screen flashes, with two white squares in the middle. Does anyone know how to fix this?
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 28th Jan 2007 17:17
Where you set the display mode at the start of your program, use:



and that should fix the problem.

TDK_Man

D olive
18
Years of Service
User Offline
Joined: 28th Jan 2007
Location:
Posted: 28th Jan 2007 17:24
Thankyou, thats has helped. Will i have to do that everytime, or just this once?
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 29th Jan 2007 13:52 Edited at: 29th Jan 2007 13:58
You need to do that at the start of every DB Classic program. It's only really for XP users because as far as I'm aware the problem doesn't exist with other versions of Windows.

It was supposed to have been fixed in later updates of DBC (which are you using by the way?), but it was reported that the fix didn't work on all machines.

Adding the lines I showed you does though.

TDK_Man

Anto
19
Years of Service
User Offline
Joined: 30th Oct 2005
Location: Brisbane, AUS
Posted: 2nd Feb 2007 13:50
G'day

I've tried the code that you did, I always get flashing screen when start up my game. it always been like that.

Anto
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 3rd Feb 2007 17:56
Quote: "I always get flashing screen when start up my game"


You shouldn't do.

Make sure that the lines of code I supplied in my first post go into your program as the very first lines your program execute - before anything else.

If that doesn't work, try adding a Sync as follows:



TDK_Man

Server Setup
18
Years of Service
User Offline
Joined: 5th Jan 2007
Location:
Posted: 9th Feb 2007 20:07
What is the "cls 0" for?
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 9th Feb 2007 22:58
0 is the same as rgb(0,0,0).

So black.

-=-=- Activate asshat mode. -=-=-
Warning: This post may contain bloatage.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 9th Feb 2007 23:06
... and it's quicker!

Admittedly not a lot quicker, but anything to make DBC a little faster is an advantage!

Every time you use the RGB() function, DB has to do a calculation.

Black is 0,0,0 for the red, green and blue so the calculation is with all zeros and resulting in zero - making it a pointless one.

Saying CLS 0 or Ink 0,0 instead of using the RGB() function is therefore faster.

TDK_Man

THE GAME BRO
18
Years of Service
User Offline
Joined: 9th Feb 2007
Location:
Posted: 9th Feb 2007 23:46
that is the best peice of advice ive got-)

Login to post a reply

Server time is: 2025-05-26 02:56:11
Your offset time is: 2025-05-26 02:56:11