Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Newbie Questions
by AndrewAMD. 12/04/23 11:14
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
2 registered members (TipmyPip, izorro), 556 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Changing light level in code ? #249339
02/01/09 20:58
02/01/09 20:58
Joined: Apr 2008
Posts: 437
dracula Offline OP
Senior Member
dracula  Offline OP
Senior Member

Joined: Apr 2008
Posts: 437
Assuming you had a wmb file (a simple level) with lights in it, is it possible to programmatically change the light level (darker or dimmer) ?

Thanks

drac.

Re: Changing light level in code ? [Re: dracula] #249344
02/01/09 21:28
02/01/09 21:28
Joined: Oct 2008
Posts: 218
Nashua NH
heinekenbottle Offline
Member
heinekenbottle  Offline
Member

Joined: Oct 2008
Posts: 218
Nashua NH
With dynamic lights, yes. With lights placed in WED, no.

Simply create invisible, passable, entities, with the light flag set, and the lightrange greater than 0 and RGB values greater than zero (at least in one component)

Like this:

action light()
{
set(my,INVISIBLE | PASSABLE | LIGHT);
my.lightrange = 300;
my.red = 200;
my.blue = 0;
my.green = 0;
}

creates a red light.


I was once Anonymous_Alcoholic.

Code Breakpoint;
Re: Changing light level in code ? [Re: heinekenbottle] #249393
02/02/09 10:06
02/02/09 10:06
Joined: Apr 2008
Posts: 437
dracula Offline OP
Senior Member
dracula  Offline OP
Senior Member

Joined: Apr 2008
Posts: 437
Thanks

drac

Whilst this certainly works, it seems rather long winded. Do I really need to create an entity and then attatch an action etc ?

Thanks again

Last edited by dracula; 02/02/09 20:01.

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1