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 Professional Discussion / Turning off the global (main) light in DBpro

Author
Message
Porl
23
Years of Service
User Offline
Joined: 28th May 2003
Location: United Kingdom
Posted: 4th Aug 2003 23:04
I've looked through all the commands in help that i could see but couldn't find a way of turning off the main light in Dark Basic Pro.

Basically..Im messing around with a side scrolling shooter and i want to turn off the main illumination. I've tried setting ambient lighting to 0, coloring the light to black...etc but nothing seems to turn it off. I want to be able to completely light the game myself but i cant with the standard 'above' light on all the time.

Does someone know how to turn it off?...

Thanks in advanced...

Porl''
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 4th Aug 2003 23:44
HIDE LIGHT 0

The programmer formerly known as sonic
Mentor
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 4th Aug 2003 23:46 Edited at: 4th Aug 2003 23:48
"hide light 0" should do it, defaults in pro are normaly 0, for example the bitmap used by the screen and draw commands is bitmap 0 and the default camera is 0, so just hide light 0 and all should be well (oh! set the background to black...that has it`s own weird rules )

Mentor.

strange I got beat to it by a spook considering my current project

Porl
23
Years of Service
User Offline
Joined: 28th May 2003
Location: United Kingdom
Posted: 4th Aug 2003 23:52
thanks guys!!!!!!

Porl''
Porl
23
Years of Service
User Offline
Joined: 28th May 2003
Location: United Kingdom
Posted: 4th Aug 2003 23:54
Just tried it out!! ...WOW!! thats worked exactly like i wanted!

Thanks again!!

Porl''

Login to post a reply

Server time is: 2026-07-22 10:04:47
Your offset time is: 2026-07-22 10:04:47