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 / Background Color

Author
Message
Zeus
19
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 8th Jul 2006 17:45
I have DBC and loaded an object, it makes the backgorund color blue. It also hides text. How can I change the background color in order for it to not hide text?

><Jordan Stories Games><
Sven B
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 8th Jul 2006 20:26 Edited at: 8th Jul 2006 20:27
The text hides because of the blue thing, what we call backdrop.
To turn it off, simply use backdrop off. You will see that the blue thing is gone, but you'll also see that if you rotate the object, the screen doesn't get updated correctly.

(Like in this example)


Which is ofcourse not always handy.

If you want to avoid this... Well, then you don't have much choice but using loops.

Example:


Beside this, we usually use sync on and sync, to make the program run smoothly.

(You only see the effect when you have lower fps)

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Zeus
19
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 8th Jul 2006 21:37
Thank You! That does explain alot!

><Jordan Stories Games><

Login to post a reply

Server time is: 2026-07-07 00:29:24
Your offset time is: 2026-07-07 00:29:24