Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,618 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Ceiling light #211843
06/18/08 18:46
06/18/08 18:46
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
NL_3DGS_n00b Offline OP
Member
NL_3DGS_n00b  Offline OP
Member

Joined: Jul 2005
Posts: 262
Earth, The Netherlands
Hello,

In my level, I have 4 square tiles on the ceiling.
These tiles are white, and are models.
I have these tiles the same action:

Code:
var lightFlicker = 0;
action light(){
	while(1){
		lightFlicker = random(70);
		my.lightrange = 350;
		wait(lightFlicker);
		my.lightrange = 0;
		wait(lightFlicker);
		wait(1);
	}
}

But I want the model to lit up, together with the lightrange, but I can't get it to work.

Does anyone know a solution?


The best games are the games you create yourself.
Re: Ceiling light [Re: NL_3DGS_n00b] #212106
06/20/08 13:01
06/20/08 13:01
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
NL_3DGS_n00b Offline OP
Member
NL_3DGS_n00b  Offline OP
Member

Joined: Jul 2005
Posts: 262
Earth, The Netherlands
Anyone?


The best games are the games you create yourself.
Re: Ceiling light [Re: NL_3DGS_n00b] #212143
06/20/08 16:55
06/20/08 16:55
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi

Where is
(lightFlicker)

Chanded or set

Re: Ceiling light [Re: Ottawa] #212155
06/20/08 17:58
06/20/08 17:58
Joined: Aug 2000
Posts: 7,490
O
Orange Brat Offline

Senior Expert
Orange Brat  Offline

Senior Expert
O

Joined: Aug 2000
Posts: 7,490
EDIT: Most if not all of the links in that thread are broken because of a change in the forum software. I think they're all in the User Contributions forum, so just use my user name, pick a word from the Subject and use a range (within a 2-year period) from about 3-5 years ago (give or take a couple years depending on the thread).

I know you're using Lite-C, but click on "master list" in my signature and take a look at my light C-script. I wanted a comprehensive (or close to it) dynamic light script, so I threw in everything I thought I'd need (but I have a simple one too wink ). Anyway, maybe it will give you some idea if you can read my hack.

Here's a direct link:


http://www.coniserver.net/ubb7/ubbthreads.php?ubb=showflat&Number=41245


My User Contributions master list - my initial post links are down but scroll down page to find list to active links
Re: Ceiling light [Re: Ottawa] #212169
06/20/08 18:52
06/20/08 18:52
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
NL_3DGS_n00b Offline OP
Member
NL_3DGS_n00b  Offline OP
Member

Joined: Jul 2005
Posts: 262
Earth, The Netherlands
Originally Posted By: Ottawa
Hi

Where is
(lightFlicker)

Chanded or set

Lightflicker is the variable above the action.

Originally Posted By: Orange Brat
EDIT: Most if not all of the links in that thread are broken because of a change in the forum software. I think they're all in the User Contributions forum, so just use my user name, pick a word from the Subject and use a range (within a 2-year period) from about 3-5 years ago (give or take a couple years depending on the thread).

I know you're using Lite-C, but click on "master list" in my signature and take a look at my light C-script. I wanted a comprehensive (or close to it) dynamic light script, so I threw in everything I thought I'd need (but I have a simple one too wink ). Anyway, maybe it will give you some idea if you can read my hack.

Here's a direct link:


http://www.coniserver.net/ubb7/ubbthreads.php?ubb=showflat&Number=41245


Thank you, I will take a look at it.


The best games are the games you create yourself.

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

Gamestudio download | 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