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.

Dark GDK / Oh No! Green background?

Author
Message
vocebello
19
Years of Service
User Offline
Joined: 30th Dec 2004
Location: Toronto, Canada
Posted: 17th Mar 2009 00:51 Edited at: 17th Mar 2009 00:55
So I screwed up, and I can't seem to unscrew this. lol.
I was fixing my collision code, and I ended up adding a green bg in the process. However, I have not been able to figure out how it changed from the default blue, to green, without any bg altering code?

Here is a picture of what I'm dealing with; and below is my complete source code. Can someone shed any light on what the heck I did wrong?




[ freelance DarkGDK coder ]
Smaadmin
16
Years of Service
User Offline
Joined: 23rd Nov 2008
Location:
Posted: 17th Mar 2009 02:15 Edited at: 17th Mar 2009 02:22
You made a new camera of course!

default camera 0 is blue bg

you made camera one, which is covering the screen, default green bg

(dbMakeCamera(1))

to get your blue background i think you would put dbcolor backdrop RGB(0,0,255) though im not sure if that command got made obsolete

SMAAD presents GOD (Glory Of Dementia).. wierd music... and games... GLOWWORM BETA DEMO AVAILABLE, PLEASE REVIEW AND GIVE FEEDBACK: http://forum.thegamecreators.com/?m=forum_view&t=140564&b=8
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 17th Mar 2009 02:15 Edited at: 17th Mar 2009 02:15
That's because you're creating a new camera with dbMakeCamera(1) rather than using the default camera (camera 0). The default backdrop for camera 0 is blue, which is what you're used to, whereas the default backdrop for camera 1 is green.

EDIT:


NOOOOOOOO!!! I've been beaten to it!

Smaadmin
16
Years of Service
User Offline
Joined: 23rd Nov 2008
Location:
Posted: 17th Mar 2009 02:23
haha, sorry! was an easy one

SMAAD presents GOD (Glory Of Dementia).. wierd music... and games... GLOWWORM BETA DEMO AVAILABLE, PLEASE REVIEW AND GIVE FEEDBACK: http://forum.thegamecreators.com/?m=forum_view&t=140564&b=8
vocebello
19
Years of Service
User Offline
Joined: 30th Dec 2004
Location: Toronto, Canada
Posted: 17th Mar 2009 03:02 Edited at: 17th Mar 2009 03:03
I figured that may have been the case, so when I added

right after making the camera, you'd suppose the screen would turn blue, right?
Wrong, still green.


Oh and thank you for the quick reply. I appreciate the help I've been getting on these forums.

[ freelance DarkGDK coder ]
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 17th Mar 2009 04:13
dbColorBackdrop() has an optional first parameter, CameraNumber, that tells it which camera to change the backdrop of.

Change:

dbColorBackdrop( dbRGB(0,0,255) );

to:

dbColorBackdrop( 1, dbRGB(0,0,255) );

vocebello
19
Years of Service
User Offline
Joined: 30th Dec 2004
Location: Toronto, Canada
Posted: 17th Mar 2009 04:16
Andrew, Thank you so much. =) That was what I missed. I appreciate everyone's help!

[ freelance DarkGDK coder ]

Login to post a reply

Server time is: 2024-11-25 17:29:53
Your offset time is: 2024-11-25 17:29:53