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 / Flashing DarkBASIC screen

Author
Message
Poofonch
16
Years of Service
User Offline
Joined: 7th Mar 2009
Location:
Posted: 11th Apr 2009 04:36
When I make something like "print "hello world"", I run it and the screen begins to flash. What's the problem?

Kittens: so cute they make your head explode into candy.
Quirkyjim
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 11th Apr 2009 16:02
Who knows? This problem seems to be popping up all over the place. Try putting this:

SYNC ON
SYNC RATE 60


at the top of your code, then in your main loop include a SYNC. That should help.

That's what they WANT you to think...
Poofonch
16
Years of Service
User Offline
Joined: 7th Mar 2009
Location:
Posted: 11th Apr 2009 16:21
Works. Thanks

Kittens: so cute they make your head explode into candy.
NeX the Fairly Fast Ferret
20
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 11th Apr 2009 16:56
The issue you experienced is because by default Dark BASIC just redraws the screen whenever it thinks it might be appropiate. This can be handy but for games it's pretty outright useless.

Poofonch
16
Years of Service
User Offline
Joined: 7th Mar 2009
Location:
Posted: 11th Apr 2009 17:30
THanks for clearing that up.

Kittens: so cute they make your head explode into candy.
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 18th Apr 2009 20:58
ya that happened to me a while back, putting a CLS at the top of ur code will fix it to

There are only 10 kinds of people in the world, those who understand binary and those who dont

Login to post a reply

Server time is: 2025-06-08 05:41:22
Your offset time is: 2025-06-08 05:41:22